/* melro.app: white and clean like the Play listing (Ana's reference, 20 Oct 2026), the app-v2 tokens for ink, cards and buttons.
   Colour comes only from Tali. */
:root {
  --screen: #ffffff; --soft: #f5f4f8; --card: #ffffff; --ink: #1d2433; --muted: #6b7280; --line: #e6e3ea;
  --btn: #1d2433; --btn-ink: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--screen); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* the hero: the name in the middle, Talis around it (placed by the page's script) */
.hero { position: relative; overflow: hidden; height: min(720px, 92vh); min-height: 560px; display: grid; place-items: center; text-align: center; }
.hero .mid { position: relative; z-index: 2; padding: 0 16px; }
.hero .tl { position: absolute; z-index: 1; pointer-events: none; }
.hero .tl.live { pointer-events: auto; }
.hero .tl canvas { display: block; }
.corner { position: absolute; z-index: 3; top: 18px; right: 16px; font-size: 14px; font-weight: 650; text-decoration: none; padding: 8px 14px; border-radius: 99px; background: var(--soft); }
h1 { font-size: 92px; line-height: 1; letter-spacing: -0.04em; font-weight: 800; margin: 0; }
.lead { font-size: 21px; font-weight: 600; margin: 14px 0 0; line-height: 1.35; }
.ctas { display: flex; flex-direction: column; gap: 10px; width: 280px; margin: 28px auto 0; }
.btn { display: block; text-align: center; background: var(--btn); color: var(--btn-ink); border-radius: 99px; padding: 14px 20px; font-weight: 650; font-size: 16px; text-decoration: none; transition: transform .14s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--screen); color: var(--ink); border: 1.5px solid var(--line); }
.btn.dis { color: var(--muted); pointer-events: none; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* the app, as on the Play listing: real screens in a row */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 24px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { display: block; width: 100%; height: auto; } /* the phone in the prototype's S24 frame, with its own soft shadow */
.shots figcaption { font-weight: 650; font-size: 15px; margin-top: 4px; text-align: center; }

.priv { max-width: 560px; margin: 0 auto; padding: 40px 0 8px; }
.priv h2, .doc h2.big { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 14px; text-align: center; }
.card { background: var(--card); border-radius: 20px; }
.list { border: 1px solid var(--line); }
.list .row { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; text-decoration: none; }
.list .row + .row { border-top: 1px solid var(--line); }
.list .k { font-weight: 600; }
.list .v { color: var(--muted); }
.chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
footer { padding: 48px 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
footer a { color: var(--muted); }

/* the privacy policy */
header.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.doc { max-width: 680px; margin: 0 auto; padding: 8px 0 24px; }
.doc h1 { font-size: 44px; }
.doc .date { color: var(--muted); margin: 10px 0 24px; }
.doc h2 { font-size: 20px; margin: 30px 0 6px; letter-spacing: -0.01em; }
.doc .card { background: var(--soft); padding: 18px 20px; margin: 16px 0; }
.doc ul { padding-left: 20px; }

/* motion: things arrive on a spring, one after another, like the app (docs/motion.md); the Talis pop in, then float on their own */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popin { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(var(--r, 2deg)); } }
.hero .mid > * { animation: rise .7s cubic-bezier(.2,.9,.25,1) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.hero .tl { animation: popin .8s cubic-bezier(.3,1.4,.5,1) both; animation-delay: var(--d); }
.hero .tl:not(.live) canvas { animation: float var(--f, 4s) ease-in-out infinite; animation-delay: var(--d); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.9,.25,1); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero .mid > *, .hero .tl, .hero .tl canvas { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (min-width: 760px) {
  h1 { font-size: 150px; }
  .lead { font-size: 26px; }
  .ctas { flex-direction: row; width: auto; justify-content: center; }
  .ctas .btn { min-width: 220px; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .corner { top: 24px; right: 28px; }
}

/* the tester page (/beta): like the hero, Tali over the name, then the taps for this device. The next tap is dark, a done one ticked. */
.join { max-width: 400px; margin: 0 auto; padding: 0 0 8px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.join .tali { width: 168px; height: 168px; margin: 0 auto -20px; }
.join .tali canvas { display: block; }
.join h1 { font-size: 56px; }
.join .lead { margin: 0 0 16px; }
.join .small { font-size: 14px; color: var(--muted); margin: -2px 0 14px; }
.taps { text-align: left; overflow: hidden; counter-reset: s; }
.taps .head { padding: 14px 18px 4px; font-size: 13px; font-weight: 650; color: var(--muted); }
.taps .row { border-top: 0 !important; gap: 12px; justify-content: flex-start; counter-increment: s; }
.taps .n { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.taps .n::before { content: counter(s); }
.taps .k { flex: 1; }
.taps .go { font-size: 14px; font-weight: 650; padding: 7px 14px; border-radius: 99px; background: var(--soft); }
.taps .next .go { background: var(--btn); color: var(--btn-ink); }
.taps .done .k { color: var(--muted); }
.taps .done .n { background: var(--ink); color: var(--btn-ink); }
.taps .done .n::before { content: ''; width: 10px; height: 6px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
@media (min-width: 760px) { .join h1 { font-size: 72px; } }
