/* Landing page of calarivo.app (src/site/landing.js), on top of page.css: same colours and fonts as
   the app; its screenshots in phone frames carry the page (owner 2026-11-11), with motion that
   stays out of the way of reading (owner 2026-11-12). site.js adds .js and reveals .reveal. */
.site { background: var(--canvas); overflow-x: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* The head: a moving sea with a sun, the day's route drawn across it, the claim and the phones */
.intro { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 20px 20px 80px;
  background: linear-gradient(155deg, var(--hero-start), var(--hero-end)); border-radius: 0 0 48px 48px; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; top: -180px; right: -120px; background: rgba(244, 200, 110, .75); }
.b2 { width: 460px; height: 460px; bottom: -220px; left: -140px; background: rgba(126, 187, 177, .6); animation-duration: 22s; animation-direction: alternate-reverse; }
.b3 { width: 320px; height: 320px; top: 30%; left: 38%; background: rgba(230, 160, 126, .35); animation-duration: 26s; }
.intro::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px); background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.route { position: absolute; z-index: -1; right: -40px; bottom: 40px; width: min(720px, 90vw); height: auto; opacity: .55; pointer-events: none; }
.route path { fill: none; stroke: var(--sun-mist); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1100; stroke-dashoffset: 1100;
  animation: draw 3.2s cubic-bezier(.6, .1, .2, 1) .4s forwards; }
.route .stop { fill: var(--coral); stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; scale: 0;
  animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.route .s0 { animation-delay: .5s; } .route .s1 { animation-delay: 1.2s; } .route .s2 { animation-delay: 1.9s; }
.route .s3 { animation-delay: 2.6s; } .route .s4 { animation-delay: 3.3s; }

.top { display: flex; align-items: center; justify-content: space-between; max-width: 1160px; margin: 0 auto; }
.top .brand::before { content: none; }
.top .brand { text-transform: none; color: #fff; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; letter-spacing: .02em; }
.logo { width: 40px; height: 41px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.lang { color: var(--on-hero-soft); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; backdrop-filter: blur(8px); transition: background .2s ease; }
.lang:hover { background: rgba(255, 255, 255, .14); }
.intro-grid { display: grid; gap: 56px; max-width: 1160px; margin: 40px auto 0; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, .14); color: var(--sun-mist); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); animation: rise .7s ease-out both; }
.spark { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(232, 185, 95, .7); animation: ping 2s ease-out infinite; }
.intro h1 { font-size: clamp(42px, 8vw, 74px); line-height: 1.02; letter-spacing: -.02em; padding-bottom: .12em; margin-bottom: -.12em;
  background: linear-gradient(100deg, #fff 0 40%, var(--sun-mist) 50%, #fff 60% 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: rise .8s ease-out both .05s, shine 7s ease-in-out 1.5s infinite; }
.lead { margin: 22px 0 0; max-width: 33em; font-size: 19px; line-height: 1.6; color: var(--on-hero-soft); animation: rise .8s ease-out both .15s; }

/* Store badges: dark, with the store's mark, as people know them; a light passes over them */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; animation: rise .8s ease-out both .25s; }
.badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 18px; border-radius: 16px;
  background: #0d1f22; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 10px 28px rgba(5, 25, 28, .35); transition: transform .2s ease, box-shadow .2s ease; }
.badge::after { content: ''; position: absolute; inset: 0; translate: -120% 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); animation: sweep 6s ease-in-out 2s infinite; }
.badge + .badge::after { animation-delay: 2.4s; }
.badge svg { width: 26px; height: 26px; fill: currentColor; }
.badge span { display: flex; flex-direction: column; font-size: 19px; font-weight: 700; line-height: 1.05; }
.badge small { font-size: 11px; font-weight: 400; letter-spacing: .02em; opacity: .85; }
.badge:hover, .badge:focus-visible { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 36px rgba(5, 25, 28, .45); }
.badge:focus-visible, .lang:focus-visible, .site-foot a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Phones: the app's screenshots in a frame with a notch and a sheen; they float and lean */
.devices { --tx: 0; --ty: 0; position: relative; display: grid; justify-items: center; perspective: 1400px; }
.device { position: relative; margin: 0; width: min(74vw, 290px); aspect-ratio: 540 / 1168; box-sizing: content-box; padding: 11px; border-radius: 46px;
  background: linear-gradient(145deg, #1d3337, #0b1a1c); box-shadow: 0 40px 80px rgba(5, 30, 34, .45), inset 0 0 0 2px rgba(255, 255, 255, .1), inset 0 0 0 5px #0b1a1c; }
.device::before { content: ''; position: absolute; z-index: 2; top: 20px; left: 50%; translate: -50% 0; width: 22%; height: 22px; border-radius: 999px; background: #0b1a1c; }
.device::after { content: ''; position: absolute; inset: 11px; z-index: 2; border-radius: 36px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 32%); }
.screen { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: var(--parchment); }
.devices .front { z-index: 1; animation: arrive .9s ease-out both .2s, float 7s ease-in-out 1.2s infinite; }
.devices .back { display: none; }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px 10px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .92); color: #164f55; font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 16px 36px rgba(5, 30, 34, .3); backdrop-filter: blur(10px); animation: arrive .7s cubic-bezier(.3, 1.4, .5, 1) both, bob 6s ease-in-out infinite; }
.chip .icon { width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: #dceee9; color: #1f7478; box-sizing: border-box; }
.c0 { top: 14%; left: -4%; animation-delay: 1s, 1.7s; }
.c1 { top: 52%; right: -6%; animation-delay: 1.4s, 2.1s; }
.c2 { bottom: 6%; left: 2%; animation-delay: 1.8s, 2.5s; }

.sections { max-width: 1160px; margin: 0 auto; padding: 72px 20px 24px; }
.sections h2 { margin: 0 0 20px; font: 700 clamp(30px, 5vw, 46px)/1.12 CalarivoSerif, Georgia, serif; color: var(--deep-sea); }
.sections h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.sections p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 17px; }

/* Arriving on scroll: the section rises, its parts one after another */
.js .reveal > * { opacity: 0; translate: 0 36px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in > * { opacity: 1; translate: 0 0; }
.js .reveal.in > :nth-child(2) { transition-delay: .12s; }
.js .reveal.in > :nth-child(3) { transition-delay: .24s; }
.js .reveal li { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1), transform .25s ease, box-shadow .25s ease; }
.js .reveal.in li { opacity: 1; translate: 0 0; }
.js .reveal.in li:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s; }
.js .reveal.in li:nth-child(3) { transition-delay: .2s, .2s, 0s, 0s; }
.js .reveal.in li:nth-child(4) { transition-delay: .3s, .3s, 0s, 0s; }
.js .reveal.in li:nth-child(5) { transition-delay: .4s, .4s, 0s, 0s; }
.js .reveal.in li:nth-child(6) { transition-delay: .5s, .5s, 0s, 0s; }

/* Steps: numbered cards, their numbers ringing once they are in view */
.steps ol, .features ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li, .features li { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--card-line); border-radius: 28px;
  box-shadow: 0 6px 20px rgba(22, 79, 85, .07); }
.steps li:hover, .features li:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(22, 79, 85, .16); }
.step-no { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); color: #fff; font-weight: 800; font-size: 19px; box-shadow: 0 8px 18px rgba(22, 79, 85, .3); }
.step-no::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--lagoon); opacity: 0; }
.reveal.in .step-no::after { animation: ring 2.4s ease-out .6s infinite; }

/* Highlights: words beside a phone on a glowing stage, alternating */
.highlight { display: grid; gap: 40px; align-items: center; margin-top: 110px; }
.sections .kicker { margin-bottom: 10px; font: 800 15px/1 Lato, sans-serif; letter-spacing: .2em; color: var(--terracotta); }
.highlight-text { max-width: 30em; }
.stage { position: relative; display: grid; place-items: center; padding: 24px 0; }
.glow { position: absolute; width: 120%; max-width: 460px; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(126, 187, 177, .55), rgba(232, 185, 95, .25) 45%, transparent 70%); animation: breathe 8s ease-in-out infinite; }
.highlight .device { width: min(68vw, 270px); transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform: rotate(-3deg); }
.highlight.flip .device { transform: rotate(3deg); }
.highlight .device:hover { transform: rotate(0deg) scale(1.03); }
.js .highlight.reveal .stage { translate: 60px 0; }
.js .highlight.flip.reveal .stage { translate: -60px 0; }
.js .highlight.reveal.in .stage { translate: 0 0; }

/* All screenshots on a band that runs by itself and stops under the pointer */
.gallery-shots { margin-top: 120px; }
.marquee { margin: 0 -20px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip { list-style: none; display: flex; gap: 24px; width: max-content; margin: 0; padding: 16px 0 32px; animation: run 48s linear infinite; }
.marquee:hover .strip { animation-play-state: paused; }
.strip li { flex: none; width: 210px; }
.js .gallery-shots.reveal li { opacity: 1; translate: 0 0; }
.strip figure { margin: 0; }
.strip .shot { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1168; object-fit: cover; border-radius: 30px; border: 7px solid #0d1f22;
  box-shadow: 0 18px 40px rgba(8, 36, 40, .22); transition: transform .35s ease; }
.strip li:hover .shot { transform: translateY(-10px) rotate(-1.5deg); }
.strip figcaption { margin-top: 14px; text-align: center; font-weight: 700; color: var(--deep-sea); }

.features { margin-top: 110px; }
.features li::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(135deg, var(--sun), var(--lagoon), var(--coral)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.features li:hover::before { opacity: 1; }
.features .icon { width: 48px; height: 48px; padding: 11px; margin-bottom: 16px; border-radius: 16px; background: var(--mist); color: var(--sea); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.features li:hover .icon { transform: rotate(-8deg) scale(1.12); }

/* The call at the end: a sun whose rays turn slowly */
.cta { position: relative; overflow: hidden; isolation: isolate; margin: 110px 0 0; padding: 64px 24px; border-radius: 40px; text-align: center; color: #fff;
  background: linear-gradient(150deg, var(--hero-start), var(--hero-end)); }
.js .cta.reveal > .rays, .rays { position: absolute; z-index: -1; top: -60%; left: 50%; width: 1100px; aspect-ratio: 1; margin-left: -550px; opacity: 1; translate: none;
  background: repeating-conic-gradient(rgba(244, 200, 110, .2) 0 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle, #000 10%, transparent 60%); animation: turn 60s linear infinite; }
.cta-logo { position: relative; width: 96px; height: 99px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 10px rgba(255, 255, 255, .12);
  animation: float 6s ease-in-out infinite; }
.sections .cta h2 { margin-top: 18px; color: #fff; }
.sections .cta p { color: var(--on-hero-soft); }
.sections .stores { justify-content: center; margin-top: 30px; }

.site-foot { max-width: 1160px; margin: 0 auto; padding: 32px 20px 48px; text-align: center; color: var(--muted); font-size: 14px; }
.site-foot p { margin: 6px 0; }
.site-foot a { color: var(--sea); font-weight: 700; text-decoration: none; }

@media (min-width: 720px) {
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .features ul { grid-template-columns: repeat(2, 1fr); }
  .highlight { grid-template-columns: 1fr 1fr; gap: 72px; }
  .highlight.flip .highlight-text { order: 2; }
  .strip li { width: 230px; }
}
@media (min-width: 960px) {
  .intro { padding: 28px 48px 110px; }
  .intro-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; margin-top: 56px; }
  .devices { min-height: 680px; }
  .device { width: 280px; }
  .devices .front { translate: calc(var(--tx) * -24px) calc(var(--ty) * -18px); rotate: y calc(var(--tx) * 14deg); transform: rotate(-4deg) translateX(-30px); transition: translate .3s ease-out, rotate .3s ease-out; }
  .devices .back { display: block; position: absolute; top: 70px; right: -10px; transform: rotate(7deg) scale(.92); opacity: .95;
    translate: calc(var(--tx) * 18px) calc(var(--ty) * 14px); transition: translate .3s ease-out; animation: arrive .9s ease-out both .45s, bob 8s ease-in-out 2s infinite reverse; }
  .chip { translate: calc(var(--tx) * 30px) calc(var(--ty) * 22px); }
  .features ul { grid-template-columns: repeat(3, 1fr); }
  .sections { padding: 110px 48px 24px; }
  .marquee { margin: 0 -48px; }
}
@media (max-width: 959px) { .chip { font-size: 13px; } .c1 { right: -2%; } .b1 { width: 300px; height: 300px; top: -140px; right: -120px; } }
@media (max-width: 420px) { .chip span { white-space: normal; max-width: 150px; } }

@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes arrive { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes float { 0%, 100% { top: 0; } 50% { top: -14px; } }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { scale: 1; } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(232, 185, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 185, 95, 0); } }
@keyframes shine { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
@keyframes sweep { 0%, 70% { translate: -120% 0; } 100% { translate: 120% 0; } }
@keyframes ring { from { opacity: .8; scale: .9; } to { opacity: 0; scale: 1.5; } }
@keyframes breathe { 0%, 100% { scale: .92; opacity: .8; } 50% { scale: 1.06; opacity: 1; } }
@keyframes run { to { translate: -50% 0; } }
@keyframes turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route path { stroke-dashoffset: 0; } .route .stop { scale: 1; }
  .js .reveal > *, .js .reveal li, .js .highlight.reveal .stage { opacity: 1; translate: 0 0; }
  .marquee { overflow-x: auto; mask-image: none; } .strip li[aria-hidden] { display: none; }
}
/* Privacy policy and imprint: one readable column */
.legal-top { padding: 20px; }
.legal-top .brand { color: var(--deep-sea); font-weight: 800; text-decoration: none; }
.legal { max-width: 720px; margin: 0 auto; padding: 8px 20px 64px; line-height: 1.6; }
.legal h1 { margin: 8px 0 4px; }
.legal h2 { margin: 32px 0 8px; font-size: 20px; }
.legal-updated { color: var(--muted); }
.legal ul { padding-left: 20px; }
