/* Landing page */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding: 34px 0 40px; }
.hero-mark { width: min(420px, 82%); height: auto; margin: 0 0 22px; overflow: visible; }
.hero-mark g#watermark > * { opacity: 0; transform-box: fill-box; transform-origin: 50% 70%; animation: pop .8s cubic-bezier(.2,.9,.3,1.3) forwards; }
.hero-mark g#watermark > *:nth-child(1) { animation-delay: .05s; }
.hero-mark g#watermark > *:nth-child(2) { animation-delay: .3s; }
.hero-mark g#watermark > *:nth-child(3) { animation-delay: .5s; }
.hero-mark g#watermark > *:nth-child(4) { animation-delay: .7s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.7) rotate(-6deg); } to { opacity: 1; transform: none; } }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 10px; }
h1.big { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 18px; }
h1.big em { font-style: italic; color: var(--teal-deep); }
.sub { font-size: 20px; color: #3b3740; max-width: 30em; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta .badge img { height: 54px; width: auto; }
.qr { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 22px; }
.qr img { width: 74px; height: 74px; border-radius: 10px; background: #fff; padding: 4px; }
.qr span { font-size: 13px; color: var(--ink-2); line-height: 1.35; max-width: 9em; }
.fine { color: var(--ink-2); font-size: 15px; margin: 16px 0 0; }

/* Phone frame. The dark shell is a pseudo element, so it can never sit behind a layer that spills out.
   Bezel and radii scale with the frame width (container units). The screen is clipped with
   overflow, clip-path and a mask so iOS Safari also clips video, and it keeps the 1320 x 2868 ratio. */
.phone {
  position: relative; width: min(100%, 290px); margin: 0 auto; container-type: inline-size; isolation: isolate;
  --bz: clamp(3px, 1.8cqw, 6px);
}
.phone::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: #17171a;
  border-radius: calc(13cqw + var(--bz));
  box-shadow: 0 0 0 1px #3a3a40 inset, 0 40px 70px -30px rgba(40, 25, 10, .55), 0 12px 24px -12px rgba(40,25,10,.4);
}
.phone .screen {
  position: relative; z-index: 1; display: block; margin: var(--bz); aspect-ratio: 1320 / 2868;
  border-radius: 13cqw; overflow: hidden; background: var(--paper); isolation: isolate;
  clip-path: inset(0 round 13cqw); -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0);
}
.phone .screen img, .phone .screen video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
/* Screenshots already include the Dynamic Island, so no overlay is drawn. */
.phone.sm { width: min(100%, 210px); }
.phone.lg { width: min(100%, 330px); }
.hero .stage { position: relative; }
.float { position: absolute; width: 112px; border-radius: 16px; box-shadow: 0 18px 30px -14px rgba(40,25,10,.5); border: 4px solid #fff; animation: bob 7s ease-in-out infinite; }
.float.a { left: -4%; top: 10%; transform: rotate(-9deg); }
.float.b { right: -2%; top: 3%; width: 98px; transform: rotate(8deg); animation-delay: -2s; }
.float.c { right: 0; bottom: 8%; width: 120px; transform: rotate(-5deg); animation-delay: -4s; }
.float.d { left: 0; bottom: 4%; width: 92px; transform: rotate(10deg); animation-delay: -5.5s; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* Marquee */
.marq { overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq .row { display: flex; gap: 16px; width: max-content; animation: slide 70s linear infinite; }
.marq .row.rev { animation-direction: reverse; animation-duration: 85s; margin-top: 16px; }
.marq:hover .row { animation-play-state: paused; }
.marq img { height: 210px; width: auto; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 14px 24px -14px rgba(40,25,10,.5); }
.marq img:nth-child(3n) { transform: rotate(-1.6deg); } .marq img:nth-child(3n+1) { transform: rotate(1.4deg); }
@keyframes slide { to { transform: translateX(calc(-50% - 8px)); } }
.marq-caption { text-align: center; color: var(--ink-2); margin: 6px 0 0; font-size: 15px; }

/* Sections */
section.block { padding: 84px 0 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
h2.title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 12px; }
h2.title em { font-style: italic; color: var(--teal-deep); }
.sec-head p, .copy p { font-size: 19px; color: #3b3740; margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.feature.flip .copy { order: 2; }
.copy .kicker { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 15px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.dots { display: flex; gap: 8px; margin: 22px 0 0; }
.dots i { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 12px -6px rgba(40,25,10,.5); }
.pair { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.pair .phone:nth-child(2) { margin-top: 44px; }
.pair .phone { margin: 0; flex: 1 1 0; max-width: 250px; }

/* Wipe cards: line art painting itself */
.wipes { display: flex; gap: 14px; justify-content: center; }
.wipe { position: relative; width: 31%; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; border: 4px solid #fff; background: #fff; box-shadow: 0 16px 26px -14px rgba(40,25,10,.5); }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe .col { clip-path: inset(0 100% 0 0); animation: paint 6.5s ease-in-out infinite; }
.wipe:nth-child(2) .col { animation-delay: .9s; } .wipe:nth-child(3) .col { animation-delay: 1.8s; }
.wipe:nth-child(2) { margin-top: 26px; }
@keyframes paint { 0%, 8% { clip-path: inset(0 100% 0 0); } 42%, 78% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }

/* Before and after */
.ba { position: relative; width: min(100%, 420px); aspect-ratio: 3/4; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 30px 50px -26px rgba(40,25,10,.55); background: #fff; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { animation: ba 8s ease-in-out infinite; }
@keyframes ba { 0%, 18% { opacity: 0; } 38%, 78% { opacity: 1; } 98%, 100% { opacity: 0; } }
.ba .tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ba .tag.t2 { animation: ba 8s ease-in-out infinite; } .ba .tag.t1 { animation: ba-rev 8s ease-in-out infinite; }
@keyframes ba-rev { 0%, 18% { opacity: 1; } 38%, 78% { opacity: 0; } 98%, 100% { opacity: 1; } }

/* Screen strip */
.strip { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 22px 34px; margin: 0 -22px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: center; text-align: center; }
.strip .phone { width: 100%; }
.strip figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; }
.strip figcaption small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; }

/* Museum row */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cards figure { margin: 0; }
.cards img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 16px 26px -14px rgba(40,25,10,.5); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.cards figure:hover img { transform: translateY(-8px) rotate(-1.5deg); }
.cards figcaption { text-align: center; margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* Trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio .glass { padding: 28px 26px 30px; }
.trio h3 { font-family: var(--serif); font-size: 26px; margin: 12px 0 6px; letter-spacing: -.3px; }
.trio p { margin: 0; color: #3b3740; font-size: 17px; }
.trio .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: var(--butter); }
.trio .glass:nth-child(2) .ico { background: var(--pink); } .trio .glass:nth-child(3) .ico { background: var(--lilac); }
.trio .ico svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.small-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.small-grid .glass { padding: 20px 20px 22px; border-radius: 22px; }
.small-grid h4 { margin: 0 0 4px; font-size: 17px; }
.small-grid p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Final CTA */
.final { margin-top: 90px; padding: 56px 28px 50px; text-align: center; position: relative; overflow: hidden; border-radius: 40px; }
.final .app-icon { width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 18px; box-shadow: 0 24px 36px -16px rgba(10,20,50,.6); }
.final .cta { justify-content: center; margin-top: 22px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marq .row, .float, .wipe .col, .ba .after, .ba .tag { animation: none !important; }
  .wipe .col { clip-path: inset(0); } .ba .after { opacity: 1; }
  .hero-mark g#watermark > * { animation: none; opacity: 1; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 14px; }
  .hero .stage { order: 2; margin-top: 10px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .copy { order: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); } .cards figure:nth-child(n+4) { display: none; }
  .trio { grid-template-columns: 1fr; }
  .small-grid { grid-template-columns: repeat(2, 1fr); }
  .qr { display: none; }
  section.block { padding-top: 64px; }
  .marq img { height: 160px; }
}

/* Spacing around the hero badge (the generic .copy p rule zeroes margins) */
.hero .copy .sub { font-size: 20px; margin: 0 0 24px; }
.hero .copy .hero-fine { margin: 18px 0 0; }

/* Floating Get the app pill (tablet and phone) */
.getapp-pill { display: none; }
@media (max-width: 900px) {
  .getapp-pill {
    display: inline-flex; align-items: center; justify-content: center; position: fixed; z-index: 50;
    left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px);
    padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; color: #124a43;
    background: linear-gradient(180deg, rgba(226,246,236,.78), rgba(190,230,214,.62));
    border: 1px solid rgba(255,255,255,.85);
    -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 30px -10px rgba(31,110,101,.5), 0 4px 10px -4px rgba(40,25,10,.25);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .getapp-pill.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s ease, transform .3s ease; }
}
@media (prefers-reduced-motion: reduce) { .getapp-pill, .getapp-pill.show { transition: none; } }

/* Phone: one wordmark (header), compact hero so the phone shows in the first screen */
@media (max-width: 767px) {
  .hero-mark { display: none; }
  .hero { gap: 14px; padding: 4px 0 22px; }
  .hero .kicker { margin-bottom: 6px; font-size: 12px; }
  h1.big { font-size: clamp(34px, 9.4vw, 42px); letter-spacing: -1px; margin-bottom: 12px; }
  .hero .copy .sub { font-size: 17px; line-height: 1.45; margin: 0 0 22px; }
  .hero-cta { gap: 0; }
  .hero .copy .hero-fine { margin: 22px 0 0; font-size: 14px; line-height: 1.45; }
  .hero .stage { margin-top: 0; }
  header.site { padding-top: 14px; }
  section.block { padding-top: 48px; }
  .sec-head { margin-bottom: 22px; }
  .feature { gap: 22px; }
  .feature.reveal { margin-top: 56px !important; }
  .phone.lg { width: min(100%, 236px); }
  .ba { width: min(100%, 290px); }
  .strip figure { width: 190px; }
  .wipes { max-width: 100% !important; }
}

/* Floating art may nudge past the edge on tablets; never allow sideways scroll. */
html,body{overflow-x:clip}
