/* The landing page at yumnesia.app/ (src/landing.js). */

@font-face { font-family: Playfair; src: url(/get/fonts/PlayfairDisplay-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Comme; src: url(/get/fonts/Comme-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Comme; src: url(/get/fonts/Comme-SemiBold.ttf); font-weight: 600; font-display: swap; }

/* The app's light and dark palettes (lib/core/theme/app_theme.dart). */
:root {
  --bg: #F9F9F9; --card: #FFFFFF; --header: #FFE6E3; --title: #333333; --muted: #666666;
  --primary: #F58275; --strong: #C43535; --on-strong: #FFFFFF; --purple: #653FD7;
  --line: #ECE4E2; --star: #FF8340; --phone: #1B1B1D;
  /* Inside the phone: the app's header, button, input and slider colours. */
  --bar: #FFFFFF; --bar-title: #F54D4D; --bar-icon: #C43535; --cta-bg: #C43535; --cta-fg: #FFE6E3;
  --input-stroke: #CCCCCC; --search-stroke: #C43535; --cover-bg: #F54D4D; --cover-fg: #FFFFFF; --chip-bg: #FFE6E3; --chip-fg: #C43535; --bar-scroll: #FFE6E3;
  --nav: #FFE6E3; --nav-pill: #F58275; --nav-add: #C43535; --nav-on-icon: #FFFFFF; --nav-on-text: #C43535; --nav-off: #333333; --float-bg: rgb(255 255 255 / 0.85); --float-line: #9D9D9D; --float-pill: #C43535; --w-surface: #F54D4D; --w-content: #FFFFFF; --w-tint: #FFE6E3; --slider-a: rgb(254 189 182 / 0.5); --slider-b: #F54D4D; --slider-bg: #FFFFFF; --slider-dot: #CCCCCC; --thumb: #FEBDB6;
  --metal-a: #E9E3DF; --metal-b: #8F8884;
  --water: #DDEBF1; --road: #FFFFFF; --land: #F3EEEA;
  --shadow: 0 24px 60px rgb(196 53 53 / 0.14), 0 4px 14px rgb(0 0 0 / 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111; --card: #1E1E1E; --header: #261E18; --title: #EAEAEA; --muted: #9E9E9E;
    --primary: #FFB783; --strong: #FFB783; --on-strong: #261E18; --purple: #B9A7F8;
    --line: #2C2C2E; --star: #FFD476; --phone: #050505;
    --bar: #1E1E1E; --bar-title: #EAEAEA; --bar-icon: #EAEAEA; --cta-bg: #E0C1AE; --cta-fg: #261E18;
    --input-stroke: #2C2C2E; --search-stroke: #E0C1AE; --cover-bg: #FFCCA8; --cover-fg: #6D390A; --chip-bg: #E0C1AE; --chip-fg: #6D390A; --bar-scroll: #322722;
    --nav: #261E18; --nav-pill: #A87A58; --nav-add: #A87A58; --nav-on-icon: #EAEAEA; --nav-on-text: #E0C1AE; --nav-off: #EAEAEA; --float-bg: rgb(30 30 30 / 0.85); --float-line: #E0C1AE; --float-pill: #A87A58; --w-surface: #6D390A; --w-content: #EAEAEA; --w-tint: #E0C1AE; --slider-a: rgb(168 122 88 / 0.5); --slider-b: #6D390A; --slider-bg: #9E9E9E; --slider-dot: #EAEAEA; --thumb: #A87A58;
    --metal-a: #5A5754; --metal-b: #1C1B1A;
    --water: #17252D; --road: #34302C; --land: #221E1B;
    --shadow: 0 24px 60px rgb(0 0 0 / 0.5), 0 4px 14px rgb(0 0 0 / 0.3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 400 17px/1.55 Comme, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
/* The hero's glow and the phone's shadow reach past the screen's edge. Clip
   them here, not on body: body's overflow passes to the page, so the page
   grew wider than a phone's screen and could pan, taking the header with it.
   clip, unlike hidden, keeps the sticky stage working. */
main { overflow-x: clip; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { font-family: Playfair, Georgia, serif; font-weight: 500; color: var(--title); }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic { fill: none; stroke: none; stroke-width: 1; }
.logo.dark { display: none; }
@media (prefers-color-scheme: dark) { .logo.light { display: none; } .logo.dark { display: block; } }
:focus-visible { outline: 2px solid var(--strong); outline-offset: 3px; border-radius: 6px; }

.button { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 26px; background: var(--strong); color: var(--on-strong); font-weight: 600; text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s; box-shadow: 0 8px 22px rgb(196 53 53 / 0.25); }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(196 53 53 / 0.32); }
.button.small { height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--title); text-decoration: none; }
.link svg { transition: transform 0.25s var(--ease); }
.link:hover svg { transform: translateY(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(16px, 4vw, 48px); transition: background 0.3s, box-shadow 0.3s; }
.nav.stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand .logo { height: 40px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 16px; }
.langs { display: inline-flex; gap: 4px; font-size: 14px; font-weight: 600; }
.langs a { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { color: var(--strong); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 32px; max-width: 1240px; margin: 0 auto; padding: clamp(24px, 5vh, 64px) clamp(16px, 4vw, 48px) 64px; min-height: min(860px, calc(100vh - 64px)); }
.kicker { font: 500 clamp(17px, 1.6vw, 21px)/1.4 Playfair, Georgia, serif; font-style: italic; color: var(--strong); margin-bottom: 20px; }
h1 { font-size: clamp(42px, 6.2vw, 84px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }

.hero-art { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 640px; --px: 0; --py: 0; }
.glow { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--header), transparent); filter: blur(10px); }
.tilt { position: relative; transform: rotateY(calc(-14deg + var(--px) * 5deg)) rotateX(calc(5deg + var(--py) * -3deg)) rotateZ(1.5deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease); }

/* The hero phone has a body: sixteen copies of the frame's outline stacked
   behind the glass make its sides, with keys on them and a shadow cast on
   the page behind. */
.phone.deep { transform-style: preserve-3d; box-shadow: 0 0 0 0.15em var(--metal-b), 0 0 0 1px rgb(255 255 255 / 0.1) inset; }
.edge { position: absolute; inset: -0.15em; border-radius: 4.75em; background: linear-gradient(100deg, var(--metal-b), var(--metal-a) 18%, var(--metal-b) 45%, var(--metal-a) 80%, var(--metal-b)); transform: translateZ(calc(var(--z) * -0.2em)); }
.edge:last-of-type { background: var(--metal-b); }
.key { position: absolute; width: 0.5em; border-radius: 0.2em; background: var(--metal-b); transform: translateZ(-1.6em); }
.k1 { left: -0.5em; top: 13em; height: 3em; }
.k2 { left: -0.5em; top: 18em; height: 5.5em; }
.k3 { right: -0.5em; top: 17em; height: 8em; }
.cast { position: absolute; inset: 4% -2% -2% 6%; border-radius: 5em; background: rgb(40 12 12 / 0.42); filter: blur(34px); transform: translateZ(-9em) translate(calc(var(--px) * -1em + 3em), calc(var(--py) * -0.7em + 4em)); transition: transform 1.2s var(--ease); }
.glare { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.16) 46%, transparent 58%); background-size: 250% 100%; background-position: calc(50% + var(--px) * 18%) 0; transition: background-position 1.2s var(--ease); }

/* The phone: everything inside is in em, so font-size scales it. */
.phone { position: relative; text-align: left; font-size: clamp(8px, 1.25vh + 0.1vw, 12px); width: 30em; height: 62em; padding: 0.9em; border-radius: 4.6em; background: var(--phone); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 5em 9em rgb(60 20 20 / 0.28), 0 1.5em 3em rgb(0 0 0 / 0.18); }
.phone::after { content: ''; position: absolute; top: 2em; left: 50%; width: 8.4em; height: 2.3em; margin-left: -4.2em; border-radius: 2em; background: #000; z-index: 5; }
.screen { position: relative; height: 100%; border-radius: 3.8em; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; line-height: 1.35; }
/* Inside the screen 1em is 14.6 of the app's logical pixels (412 across), so
   every size below is the app's own, divided by that. */
.app-bar { display: flex; align-items: center; justify-content: space-between; height: 8.35em; padding: 4.4em 1.3em 0; background: var(--bar-scroll); color: var(--bar-icon); flex: none; }
.app-bar .logo { height: 3.6em; width: auto; }
.app-bar .icons { display: flex; align-items: center; gap: 1.64em; }
.app-bar svg { width: 1.1em; height: 1.1em; }
.app-bar.plain { justify-content: flex-start; gap: 1.1em; background: var(--bar); color: var(--bar-icon); }
.app-bar.plain b { font: 500 1.7em Playfair, Georgia, serif; color: var(--bar-title); }
.app-bar.plain svg { width: 1.2em; height: 1.2em; }
.feed { flex: 1; overflow: hidden; padding: 0 1.1em; }
.feed-track { animation: feed 38s linear infinite; }
@keyframes feed { to { transform: translateY(-50%); } }
.fcard { margin-top: 1.15em; border-radius: 1.1em; overflow: hidden; background: var(--card); box-shadow: 0 0.15em 0.6em rgb(0 0 0 / 0.14); }
.fcard img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.fcard-body { padding: 1.3em 1.1em 1.2em; }
.fcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8em; }
.fcard h4 { font-size: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { font: 500 1.8em Playfair, Georgia, serif; color: var(--title); white-space: nowrap; }
.score small, .facts small { font: 400 0.5em Comme, sans-serif; color: var(--muted); }
.place { font-size: 1.1em; color: var(--strong); }
.chip { display: inline-block; margin-top: 1.2em; padding: 0.45em 0.9em; border: 1px solid var(--purple); border-radius: 9em; color: var(--purple); font-size: 0.85em; }
.when { margin-top: 1.2em; font-size: 0.9em; }
.tabbar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 6.03em 1fr; align-items: center; height: 6.2em; padding-bottom: 1.27em; }
.bar { position: absolute; inset: 0; filter: drop-shadow(0 0 0.3em rgb(0 0 0 / 0.16)); }
.bar::before { content: ''; position: absolute; inset: 0; background: var(--nav); -webkit-mask: radial-gradient(circle 2.4em at 50% 0.41em, transparent 98%, #000 100%); mask: radial-gradient(circle 2.4em at 50% 0.41em, transparent 98%, #000 100%); }
.tab { position: relative; display: grid; justify-items: center; gap: 0.27em; font-size: 0.96em; font-weight: 300; letter-spacing: 0.01em; color: var(--nav-off); }
.tab:last-child { grid-column: 3; }
.tab i { display: grid; place-items: center; width: 4em; height: 2.28em; border-radius: 1.14em; }
.tab.on { font-weight: 400; color: var(--nav-on-text); }
.tab.on i { background: var(--nav-pill); color: var(--nav-on-icon); }
.tab svg { width: 1.71em; height: 1.71em; }
.fab { position: absolute; top: -1.64em; left: 50%; margin-left: -2.05em; display: grid; place-items: center; width: 4.11em; height: 4.11em; border-radius: 50%; background: var(--nav-add); color: var(--nav-on-icon); }
.fab svg { width: 1.78em; height: 1.78em; }
/* FloatingTabBar (iOS): a 56px frosted capsule of 64px icon tabs, 5px inset,
   and the 56px add circle 12px beside it, above the home indicator. */
.tabbar.floating { display: none; grid-template-columns: none; justify-content: center; gap: 0.82em; height: auto; padding: 0 0 2.6em; }
.ios .tabbar.notched { display: none; }
.ios .tabbar.floating { display: flex; }
.capsule { position: relative; display: flex; height: 3.84em; padding: 0.34em; border-radius: 1.92em; background: var(--float-bg); border: 0.5px solid var(--float-line); box-shadow: 0 0.41em 1.37em rgb(0 0 0 / 0.04); -webkit-backdrop-filter: blur(1.64em); backdrop-filter: blur(1.64em); color: var(--nav-off); }
.capsule .pill { position: absolute; top: 0.34em; bottom: 0.34em; left: 0.34em; width: 4.38em; border-radius: 1.58em; background: var(--float-pill); }
.capsule .tab { display: grid; place-items: center; width: 4.38em; }
.capsule .tab.on { color: var(--nav-on-icon); }
.capsule svg { position: relative; width: 1.64em; height: 1.64em; }
.capsule.add { width: 3.84em; justify-content: center; align-items: center; padding: 0; }

/* Cards floating round the hero phone: --d is how far each follows the pointer. */
.float { position: absolute; z-index: 3; text-align: left; transform: translate3d(calc(var(--px) * var(--d) * 5px), calc(var(--py) * var(--d) * 5px), 0); transition: transform 1.2s var(--ease); }
.float > div { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite; font-size: 14px; line-height: 1.3; }
.float img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.float b { display: block; font: 500 16px Playfair, Georgia, serif; color: var(--title); white-space: nowrap; }
.float em { font-style: normal; color: var(--strong); white-space: nowrap; }
.float .score { font-size: 22px; margin-left: 6px; }
.float > div > svg { width: 28px; height: 28px; color: var(--strong); margin-left: 6px; }
.f1 { top: 40%; left: -9%; }
.f2 { bottom: 16%; right: -2%; }
.f2 > div { animation-delay: -2.5s; }
.f3 { top: 13%; right: -7%; }
.f3 > div { animation-delay: -4.5s; }
.stack { display: flex; }
.stack img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--card); margin-left: -14px; }
.stack img:first-child { margin-left: 0; }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* Entrances: only once the script has run, so the page reads without it. */
.js .w > span { display: inline-block; transform: translateY(110%); animation: rise 0.9s var(--ease) calc(0.15s + var(--i) * 0.07s) forwards; }
.js .kicker, .js .lead, .js .hero-actions { opacity: 0; animation: fade-up 0.8s var(--ease) forwards; }
.js .kicker { animation-delay: 0.05s; }
.js .lead { animation-delay: 0.65s; }
.js .hero-actions { animation-delay: 0.8s; }
.js .hero-art .tilt { animation: phone-in 1.2s var(--ease) 0.2s backwards; }
.js .float > div { animation: pop 0.7s var(--ease) backwards, bob 7s ease-in-out 0.7s infinite; }
.js .f1 > div { animation-delay: 0.9s, 1.6s; }
.js .f2 > div { animation-delay: 1.1s, 1.8s; }
.js .f3 > div { animation-delay: 1.3s, 2s; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotateY(-26deg) rotateX(8deg) rotateZ(3deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.7); } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Marquee */
.marquee { padding: 32px 0 24px; max-width: 1800px; margin: 0 auto; overflow: hidden; --sy: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.row { transform: translateX(calc(var(--sy) * -0.12px)); will-change: transform; }
.row.rev { transform: translateX(calc(var(--sy) * 0.12px)); }
.track { display: flex; width: max-content; animation: slide 70s linear infinite; }
.rev .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
.set { display: flex; }
@keyframes slide { to { transform: translateX(-50%); } }
.tile { position: relative; width: clamp(150px, 16vw, 220px); aspect-ratio: 1; margin: 0 8px 16px; border-radius: 24px; overflow: hidden; flex: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile:hover img { transform: scale(1.08); }
.tile figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 36px 14px 12px; background: linear-gradient(transparent, rgb(0 0 0 / 0.72)); color: #fff; font: 500 15px/1.2 Playfair, Georgia, serif; }
.tile b { font-weight: 500; font-size: 20px; }

/* How it works: the phone stays put while the three steps scroll past. */
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.01em; text-align: center; text-wrap: balance; max-width: 16em; margin: 0 auto; }
.how { padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 48px) 0; max-width: 1240px; margin: 0 auto; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.stage .phone { font-size: clamp(7px, 1.42vh, 13px); }
.step { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 26em; opacity: 0.28; transition: opacity 0.5s; }
.step.on { opacity: 1; }
.step .n { font: 500 20px Playfair, Georgia, serif; color: var(--strong); margin-bottom: 12px; }
.step .n::after { content: ''; display: inline-block; vertical-align: middle; width: 0; height: 1px; margin-left: 12px; background: currentColor; transition: width 0.8s var(--ease); }
.step.on .n::after { width: 64px; }
.step h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; margin-bottom: 16px; text-wrap: balance; }
.step p { font-size: 18px; }

.s { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); opacity: 0; transform: translateX(6%); transition: opacity 0.5s, transform 0.6s var(--ease); pointer-events: none; }
[data-step='1'] .s1, [data-step='2'] .s2, [data-step='3'] .s3 { opacity: 1; transform: none; }

.s .app-bar { position: relative; z-index: 1; }
.form { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1.75em; padding: 1.7em 1.1em 0; }
.shot { position: relative; height: 15.2em; border-radius: 1.1em; overflow: hidden; background: var(--line); flex: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.badge-cover, .badge-remove, .addphoto, .crop { position: absolute; display: grid; place-items: center; border-radius: 50%; }
.badge-cover { top: 0.55em; left: 0.55em; width: 2.05em; height: 2.05em; background: var(--cover-bg); color: var(--cover-fg); }
.badge-remove { top: 0.55em; right: 0.55em; width: 2.2em; height: 2.2em; background: rgb(40 40 40 / 0.7); color: #fff; }
.badge-cover svg, .badge-remove svg { width: 1em; height: 1em; }
.crop { left: 0.6em; bottom: 0.6em; display: inline-flex; gap: 0.5em; height: 2.2em; padding: 0 0.9em; border-radius: 2em; background: rgb(40 40 40 / 0.6); color: #fff; font-size: 0.85em; }
.crop svg { width: 1.1em; height: 1.1em; }
.addphoto { right: 0.6em; bottom: 0.6em; width: 3.3em; height: 3.3em; background: var(--header); color: var(--strong); }
.addphoto svg { width: 1.6em; height: 1.6em; }
.field { position: relative; display: flex; align-items: center; flex: none; height: 3.55em; padding: 0 1.1em; border: 1px solid var(--input-stroke); border-radius: 0.82em; background: var(--card); }
.field label { position: absolute; top: -0.7em; left: 0.75em; padding: 0 0.4em; font-size: 0.96em; line-height: 1.3; color: var(--muted); background: linear-gradient(var(--bg) 54%, var(--card) 54%); }
.field p { flex: 1; display: flex; align-items: center; justify-content: space-between; font-size: 1.2em; letter-spacing: 0.02em; color: var(--title); }
.field.auto p { color: var(--muted); }
.field p svg { width: 1.5em; height: 1.5em; color: var(--muted); }
.field p em { font-style: normal; color: var(--muted); }
.field.empty label { top: 50%; left: 1.1em; padding: 0; transform: translateY(-50%); font-size: 1.1em; background: none; }
.field.empty p { justify-content: flex-end; }
.type { display: inline-block; white-space: nowrap; }
.ping { position: absolute; z-index: 3; top: 3.6em; left: 0.8em; right: 0.8em; display: flex; align-items: center; gap: 0.8em; padding: 0.9em 1em; border-radius: 1.5em; background: var(--card); box-shadow: 0 0.6em 2em rgb(0 0 0 / 0.25); font-size: 0.95em; line-height: 1.3; opacity: 0; transform: translateY(-120%); }
.ping img { width: 2.6em; height: 2.6em; border-radius: 0.7em; }
.ping span { flex: 1; }
.ping b { display: block; color: var(--title); font-weight: 600; }
.ping em { font-style: normal; color: var(--muted); }
.ping small { align-self: flex-start; color: var(--muted); font-size: 0.85em; }
.savebar { flex: none; padding: 0.7em 1.1em 2.4em; background: var(--bg); }
.cta { display: grid; place-items: center; height: 2.8em; border-radius: 0.62em; background: var(--cta-bg); color: var(--cta-fg); font-size: 1.05em; letter-spacing: 0.02em; }

.group { display: flex; align-items: center; justify-content: space-between; flex: none; margin-top: 0.4em; }
.group h5 { font-size: 1.45em; }
.group span { display: inline-flex; align-items: center; gap: 0.6em; font-size: 1em; color: var(--bar-icon); }
.group svg { width: 1.1em; height: 1.1em; }
.rating { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.75em 1em; flex: none; margin-top: -0.75em; color: var(--title); }
.rating span { font-size: 1.05em; }
.rating b { font: 500 1.8em/1 Playfair, Georgia, serif; }
.rating > svg { width: 1em; height: 1em; }
.slider { position: relative; grid-column: 1 / -1; height: 0.42em; margin-bottom: 0.4em; border-radius: 1em; background: radial-gradient(circle, var(--slider-dot) 0.09em, transparent 0.11em) 0 50% / 10% 100% var(--slider-bg); }
.slider i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: radial-gradient(circle, var(--slider-dot) 0.09em, transparent 0.11em) 0 50% / 2.58em 100%, linear-gradient(90deg, var(--slider-a), var(--slider-b)); }
.slider u { position: absolute; top: 50%; left: 0; width: 1.05em; height: 1.05em; margin: -0.52em 0 0 -0.52em; border-radius: 50%; background: var(--thumb); }
.chips { display: flex; gap: 0.8em; flex: none; margin-top: -0.6em; }
.chips span { display: inline-flex; align-items: center; gap: 0.8em; height: 2.5em; padding: 0 0.9em; border: 1px solid var(--input-stroke); border-radius: 0.5em; font-size: 1em; color: var(--muted); white-space: nowrap; }
.chips svg { width: 1.1em; height: 1.1em; color: var(--bar-icon); }

.s3 .app-bar { background: var(--bar); color: var(--bar-icon); }
.found { display: inline-flex; align-items: center; gap: 0.5em; height: 2.33em; padding: 0 0.83em; border-radius: 1.67em; background: var(--chip-bg); color: var(--chip-fg); font-size: 0.82em; font-weight: 600; }
.app-bar .found svg { width: 1em; height: 1em; }
.searchfield { display: flex; align-items: center; flex: none; height: 2.75em; margin: 1em 1em 0; padding: 0 0.75em 0 1em; border: 1px solid var(--search-stroke); border-radius: 2em; color: var(--title); font-size: 1.1em; }
.searchfield svg { width: 1em; height: 1em; margin-left: auto; }
.caret { width: 1px; height: 1.3em; margin-left: 1px; background: var(--search-stroke); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.results > div { opacity: 0; }

/* Each screen plays when its step comes up, and again on the way back. */
[data-step='1'] .ping { animation: ping 2.6s var(--ease) 0.3s; }
[data-step='1'] .shot img { animation: develop 1s var(--ease) 2.5s backwards; }
[data-step='1'] .flash { animation: flash 0.7s ease-out 2.5s; }
[data-step='1'] .shot span { animation: pop 0.5s var(--ease) 3.3s backwards; }
[data-step='1'] .s1 .cta { animation: nudge 0.6s var(--ease) 4s; }
[data-step='2'] .s2 .type { animation: type calc(var(--n) * 45ms) steps(var(--n)) calc(0.4s + var(--i) * 0.9s) backwards; }
[data-step='2'] .slider i { width: calc(var(--v) * 100%); transition: width 1.1s var(--ease) calc(2.2s + var(--i) * 0.2s); }
[data-step='2'] .slider u { left: calc(var(--v) * 100%); transition: left 1.1s var(--ease) calc(2.2s + var(--i) * 0.2s); }
[data-step='2'] .s2 .cta { animation: nudge 0.6s var(--ease) 4s; }
/* Each letter of the query takes up no room until it's typed, so the caret
   follows the text. */
[data-step='3'] .query span { animation: key 0s calc(0.4s + var(--c) * 100ms) backwards; }
@keyframes key { from { font-size: 0; } }
[data-step='3'] .found { animation: nudge 0.5s var(--ease) 1.1s; }
[data-step='3'] .results > div { animation: fade-up 0.6s var(--ease) calc(1.1s + var(--i) * 0.14s) forwards; }
/* The photo isn't there until the flash takes it. */
@keyframes develop { 0% { opacity: 0; } 1% { opacity: 1; transform: scale(1.3); filter: blur(10px) saturate(0.4); } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes nudge { 40% { transform: scale(1.04); } }
@keyframes ping { 0% { opacity: 0; transform: translateY(-120%); } 18%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-120%); } }

/* The rest of the features */
.more { padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 48px) 0; max-width: 1240px; margin: 0 auto; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.card { grid-column: span 2; display: flex; flex-direction: column; padding: 20px 20px 28px; border-radius: 32px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.card h3 { font-size: 26px; line-height: 1.2; margin: 20px 8px 8px; }
.card > p { margin: 0 8px; font-size: 16px; }
.card .art { position: relative; flex: 1; min-height: 200px; border-radius: 20px; background: var(--header); display: grid; place-items: center; overflow: hidden; }
.card.share { grid-row: span 2; }
.card.map { grid-column: span 4; }
.card.visits, .card.widget { grid-column: span 3; }
.card:nth-child(2) { --k: 1; } .card:nth-child(3) { --k: 1; } .card:nth-child(4) { --k: 2; } .card:nth-child(6) { --k: 1; }

.share .art { perspective: 900px; padding: 28px; }
.sharecard { width: min(100%, 250px); --rx: 0; --ry: 0; transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)) rotate(-3deg); transition: transform 0.4s var(--ease); }
.sc-inner { position: relative; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-align: center; animation: bob 8s ease-in-out infinite; }
.sc-inner > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sc-body { padding: 16px 14px 18px; font-size: 9px; }
.sc-body h4 { font-size: 22px; line-height: 1.15; }
.sc-body .big { margin: 6px 0 10px; }
.sc-body .big .score { font-size: 4em; }
.via { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: left; font-size: 11px; line-height: 1.3; }
.via img { width: 34px; height: 34px; border-radius: 4px; background: #fff; }
.via b { display: block; font-weight: 400; color: var(--primary); }
.sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 0.5) 50%, transparent 60%); transform: translateX(-100%); }
.card.in .sheen { animation: sheen 1.4s ease-out 0.6s; }
.sharecard:hover .sheen { animation: sheen 1.1s ease-out; }
@keyframes sheen { to { transform: translateX(100%); } }

.mapart { position: absolute; inset: 0; background: var(--land); }
.mapart svg { width: 100%; height: 100%; stroke: none; }
.water { fill: var(--water); }
.road { fill: none; stroke: var(--road); stroke-width: 9; }
.road.thin { stroke-width: 4; }
.pin { position: absolute; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px 5px 8px; margin: -18px 0 0 -30px; border-radius: 20px; background: var(--card); color: var(--title); font: 500 16px Playfair, Georgia, serif; box-shadow: 0 6px 16px rgb(0 0 0 / 0.16); opacity: 0; }
.pin svg { width: 15px; height: 15px; color: var(--star); }
.card.in .pin { animation: drop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) calc(0.3s + var(--i) * 0.12s) forwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) scale(0.6); } to { opacity: 1; transform: none; } }

.fan { position: relative; width: 150px; height: 150px; }
.fan img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 20px; object-fit: cover; border: 4px solid var(--card); box-shadow: 0 10px 24px rgb(0 0 0 / 0.18); transition: transform 0.9s var(--ease) 0.3s; }
.card.in .fan img:nth-child(1) { transform: translateX(-62px) rotate(-12deg); }
.card.in .fan img:nth-child(2) { transform: translateX(62px) rotate(12deg); }
.card.in .fan img:nth-child(3) { transform: translateY(-6px); }
.card:hover .fan img { transition-delay: 0s; }
.card:hover .fan img:nth-child(1) { transform: translateX(-84px) rotate(-18deg); }
.card:hover .fan img:nth-child(2) { transform: translateX(84px) rotate(18deg); }
.card:hover .fan img:nth-child(3) { transform: translateY(-14px) scale(1.04); }

.checks { display: grid; gap: 14px; padding: 24px; color: var(--title); font-weight: 600; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--strong); color: var(--on-strong); transform: scale(0); }
.card.in .checks svg { animation: check-in 0.5s var(--ease) calc(0.4s + var(--i) * 0.25s) forwards; }
@keyframes check-in { to { transform: none; } }

.notif { display: flex; align-items: center; gap: 12px; width: min(88%, 400px); padding: 14px 16px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; opacity: 0; }
.notif img { width: 40px; height: 40px; border-radius: 10px; }
.notif span { flex: 1; }
.notif b { display: block; color: var(--title); font-weight: 600; }
.notif em { font-style: normal; }
.notif small { align-self: flex-start; font-size: 12px; }
.card.in .notif { animation: notif 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) 0.5s forwards; }
@keyframes notif { from { opacity: 0; transform: translateY(-70px) scale(0.92); } to { opacity: 1; transform: none; } }

/* The home-screen widgets (#425) on a placeholder home screen, its top in a
   phone frame. --u is an iOS point or an Android dp: the screen is 390pt or
   412dp across. The widgets: WidgetPalette's surface, content and tint. */
.card.widget .art { container-type: inline-size; align-self: stretch; justify-self: stretch; min-height: 0; height: clamp(260px, 62cqi, 340px); place-items: start center; }
.homes { display: contents; }
.home { --w: min(400px, 92cqi); position: relative; width: var(--w); height: 100%; margin-top: 22px; border: 7px solid var(--phone); border-bottom: 0; border-radius: 40px 40px 0 0; overflow: hidden; color: #fff; background: radial-gradient(130% 55% at 0% 0%, #7E98D6 0 34%, transparent 35%), radial-gradient(90% 60% at 110% 100%, #3B2A4A, transparent 70%), #100F17; -webkit-mask: linear-gradient(#000 75%, transparent); mask: linear-gradient(#000 75%, transparent); }
.home.ios { --u: calc((var(--w) - 14px) / 390); }
.home.android { --u: calc((var(--w) - 14px) / 412); }
.ios .home.android, html:not(.ios) .home.ios { display: none; }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 0 calc(30 * var(--u)); height: calc(54 * var(--u)); font: 600 calc(15 * var(--u)) / 1 system-ui, sans-serif; }
.sbar i { width: calc(60 * var(--u)); height: calc(11 * var(--u)); border-radius: calc(4 * var(--u)); background: rgb(255 255 255 / 0.85); }
.home.android .sbar { height: calc(40 * var(--u)); padding: 0 calc(24 * var(--u)); font-weight: 500; }
.home .grid { display: grid; }
.home.ios .grid { grid-template-columns: repeat(4, calc(64 * var(--u))); grid-auto-rows: calc(68 * var(--u)); gap: calc(26 * var(--u)) calc(28.67 * var(--u)); padding: calc(10 * var(--u)) calc(24 * var(--u)); }
.home.android .grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc(100 * var(--u)); padding: calc(8 * var(--u)) calc(16 * var(--u)); place-items: center; }
/* Placeholder apps, a label under each. */
.home .app { position: relative; width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(15 * var(--u)); background: rgb(255 255 255 / 0.16); }
.home .app::after { content: ''; position: absolute; left: 20%; right: 20%; top: calc(100% + 6 * var(--u)); height: calc(7 * var(--u)); border-radius: 9em; background: rgb(255 255 255 / 0.22); }
.home.android .app { width: calc(56 * var(--u)); height: calc(56 * var(--u)); border-radius: 50%; }
.home.ios .wmedium { grid-column: 1 / -1; grid-row: span 2; }
.home.ios .wsmall { grid-column: span 2; grid-row: span 2; }
.home.android .wpill { grid-column: 1 / 4; }
.home.android .wone { grid-column: 2; }
.widget svg { display: block; }
.widget .wlogo { width: auto; aspect-ratio: 292 / 470; color: var(--w-surface); fill: currentColor; stroke: none; }
.widget .disc { display: grid; place-items: center; border-radius: 50%; background: var(--w-tint); }
.widget .badge { position: absolute; display: grid; place-items: center; border-radius: 50%; background: var(--w-surface); color: var(--w-content); }
.wsmall { position: relative; display: grid; place-items: center; border-radius: calc(22 * var(--u)); background: var(--w-tint); box-shadow: var(--shadow); }
.wsmall .wlogo { height: calc(88 * var(--u)); }
.wsmall .badge { right: calc(10 * var(--u)); bottom: calc(10 * var(--u)); width: calc(36 * var(--u)); height: calc(36 * var(--u)); }
.wsmall .badge svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.wmedium { display: flex; align-items: center; padding: 0 calc(12 * var(--u)); border-radius: calc(22 * var(--u)); background: var(--w-surface); color: var(--w-content); box-shadow: var(--shadow); }
.wmedium > * { flex: 1; display: grid; place-items: center; }
.wmedium .disc { flex: none; width: calc(112 * var(--u)); height: calc(112 * var(--u)); margin: 0 calc(12 * var(--u)); }
.wmedium .disc .wlogo { height: calc(72 * var(--u)); }
.wmedium > svg, .wmedium .tap svg { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.wpill { display: flex; align-items: center; height: calc(60 * var(--u)); padding: 0 calc(6 * var(--u)) 0 calc(4 * var(--u)); border-radius: calc(30 * var(--u)); background: var(--w-surface); color: var(--w-content); box-shadow: var(--shadow); }
.wpill .disc { width: calc(52 * var(--u)); height: calc(52 * var(--u)); }
.wpill .disc .wlogo { height: calc(33 * var(--u)); }
.wpill > svg, .wpill .tap { margin: 0 calc(16 * var(--u)); }
.wpill > svg { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.wpill .tap svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.wpill .tap { display: grid; place-items: center; width: calc(28 * var(--u)); }
/* The 1x1: the badge's centre on the circle's edge, at its bottom right. */
.wone { position: relative; width: calc(54 * var(--u)); height: calc(54 * var(--u)); }
.wone .disc { width: calc(50 * var(--u)); height: calc(50 * var(--u)); box-sizing: border-box; border: calc(2 * var(--u)) solid var(--w-surface); box-shadow: var(--shadow); }
.wone .disc .wlogo { height: calc(32 * var(--u)); }
.wone .badge { left: calc(32.7 * var(--u)); top: calc(32.7 * var(--u)); width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.wone .badge svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.card.in .wsmall .badge, .card.in .widget .tap, .card.in .wone .badge { animation: tap 2.6s var(--ease) 1s infinite; }
@keyframes tap { 8% { transform: scale(0.85); } 16% { transform: none; } }

/* Questions people ask before installing: closed by default, the answers
   still in the page for search engines and screen readers. */
.faq { padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 48px) 0; max-width: 860px; margin: 0 auto; }
.faq-list { margin-top: clamp(32px, 5vh, 48px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font: 500 clamp(19px, 1.8vw, 23px)/1.3 Playfair, Georgia, serif; color: var(--title); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 28px/1 Comme, system-ui, sans-serif; color: var(--strong); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; max-width: 40em; }
.faq details a { color: var(--strong); }

/* Get the app */
.get { padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 48px) 48px; max-width: 1240px; margin: 0 auto; }
.get-panel { position: relative; padding: clamp(48px, 8vw, 96px) 24px; border-radius: 40px; background: var(--header); text-align: center; overflow: hidden; }
.get-panel h2 { position: relative; max-width: 14em; }
.get-panel > p { position: relative; margin: 16px 0 32px; font-size: 18px; }
.stores { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge img { height: 52px; width: auto; }
.store { display: flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 10px; background: var(--strong); color: var(--on-strong); font-weight: 600; text-decoration: none; }
.badge, .store { transition: transform 0.25s var(--ease); }
.badge:hover, .store:hover { transform: translateY(-3px); }
.soon { position: relative; color: var(--title); font-weight: 600; }
.qr { display: none; position: relative; }
/* Only where the visitor can't tap a store link: a computer. */
@media (hover: hover) and (pointer: fine) {
  .qr { display: block; margin-top: 32px; }
  .qr img { width: 132px; height: 132px; margin: 0 auto; border-radius: 12px; background: #fff; }
  .qr p { font-size: 14px; margin-top: 10px; }
}
.o { position: absolute; width: clamp(90px, 13vw, 170px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); animation: bob 9s ease-in-out infinite; }
.o img { width: 100%; height: 100%; object-fit: cover; }
.o1 { top: -4%; left: -3%; }
.o2 { bottom: -6%; left: 9%; animation-delay: -3s; width: clamp(70px, 9vw, 120px); }
.o3 { top: 6%; right: -2%; animation-delay: -5s; width: clamp(70px, 10vw, 130px); }
.o4 { bottom: -8%; right: 6%; animation-delay: -1.5s; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 40px; font-size: 14px; }
footer .logo { height: 36px; width: auto; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-link { font-weight: 600; text-decoration: none; }
.foot-link:hover { color: var(--strong); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; min-height: 0; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 0; padding: 24px 0 8px; }
  .hero-art .phone { font-size: min(9px, 2.3vw); }
  .float > div { font-size: 12px; padding: 8px 12px 8px 8px; }
  .float img { width: 38px; height: 38px; }
  .float b { font-size: 14px; }
  .f1 { left: 0; top: 44%; } .f2 { right: 0; } .f3 { display: none; }

  /* The phone sticks to the top half; the steps scroll under it. */
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  /* Stuck under the page's header (64px), not behind it, with the whole
     phone in the space left above the steps. */
  .stage { top: 64px; height: calc(56svh - 64px); z-index: 2; background: var(--bg); padding-top: 8px; align-items: start; }
  .stage::after { content: ''; position: absolute; inset: 100% 0 auto; height: 32px; background: linear-gradient(var(--bg), transparent); }
  .stage .phone { font-size: calc((56svh - 64px - 16px) / 62); }
  .step { min-height: 44vh; justify-content: flex-start; padding-top: 40px; margin: 0 auto; text-align: center; align-items: center; }
  .step:last-child { min-height: 50vh; }
  .step p { font-size: 17px; }

  .bento { grid-template-columns: 1fr; margin-top: 36px; }
  .card, .card.map, .card.visits, .card.widget, .card.share { grid-column: auto; grid-row: auto; --k: 0; }
  .card .art { min-height: 220px; }
  .o { width: 72px; }
  .o1, .o3 { top: -3%; } .o2, .o4 { bottom: -4%; width: 60px; }
  footer { justify-content: center; text-align: center; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .w > span, .js .reveal { transform: none; opacity: 1; }
  .js .kicker, .js .lead, .js .hero-actions, .results > div, .found, .pin, .notif { opacity: 1; }
  .checks svg { transform: none; }
  .slider i { width: calc(var(--v) * 100%); }
  .slider u { left: calc(var(--v) * 100%); }
  .marquee { overflow-x: auto; }
  .card .fan img:nth-child(1) { transform: translateX(-62px) rotate(-12deg); }
  .card .fan img:nth-child(2) { transform: translateX(62px) rotate(12deg); }
}
