/* Ordalo home page: real screenshots, flying food, the crew at a few chosen spots. */
.label.accent { color: var(--accent); }
.bubble { position: absolute; background: #fff7ee; color: #1f1a17; font-size: 14px; font-weight: 600; line-height: 1.3; padding: 10px 14px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); white-space: nowrap; }

/* devices */
.device { position: relative; overflow: hidden; background: #1b1918; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 2px #2b2826, 0 50px 100px -24px rgba(0, 0, 0, .85); }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device.phone { width: 300px; aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; }
.device.phone img { border-radius: 37px; }
.device.phone.small { width: 270px; }
.device.tablet { width: 100%; aspect-ratio: 1180 / 820; border-radius: 32px; padding: 14px; }
.device.tablet img { border-radius: 20px; }

/* floating food (like Drink Control) */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floaters img { position: absolute; left: var(--x); top: var(--y); width: calc(var(--s, 100px) * 1.2); height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--r, 0deg)); transition: transform .9s var(--ease); animation: bob var(--t, 7s) ease-in-out var(--dl, 0s) infinite; will-change: transform; }
@keyframes bob { 50% { translate: 0 -14px; } }

/* hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; padding: 130px 0 70px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .label { display: block; margin-bottom: 22px; }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 30px 0 0; padding: 0; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.hero-facts li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.hero-stage { position: relative; height: 660px; perspective: 1400px; }
.hero-phone { position: absolute; right: 12%; top: 10px; transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transition: transform .6s var(--ease); }
.hero-card { position: absolute; left: -2%; bottom: 20px; width: 185px; transform: rotate(-8deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); z-index: 3; }
.hero-card svg { width: 100%; height: auto; display: block; }
.hero-oli { position: absolute; right: -2%; bottom: 40px; width: 140px; z-index: 4; animation: peek 1s var(--ease) .8s both; }
.hero-oli svg { width: 100%; height: auto; overflow: visible; }
@keyframes peek { from { transform: translateY(40px) scale(.7); opacity: 0; } }
.pops { position: absolute; left: 0; top: 70px; display: grid; gap: 10px; z-index: 5; }
.pop { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 11px 16px 11px 12px; border-radius: 999px; background: rgba(255, 247, 238, .96); color: #1f1a17; font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pop.show { opacity: 1; transform: none; }
.pop .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.new { background: var(--accent-ink); } .dot.ok { background: #2f9a6a; } .dot.call { background: #e5484d; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; position: relative; z-index: 2; background: var(--bg); }
.mq-track { display: flex; width: max-content; gap: 48px; animation: mq 38s linear infinite; }
.mq-track span { font-size: clamp(20px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.03em; color: #d8d1ca; white-space: nowrap; }
.mq-track span:nth-child(3n + 2) { color: var(--accent); }
@keyframes mq { to { transform: translateX(-50%); } }

/* why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.why:first-of-type { border-top: 0; padding-top: 0; }
.why.flip .why-text { order: 2; }
.why-n { display: block; font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.why h3 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.04em; line-height: 1.04; }
.why-text > p { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 520px; }
.why-visual { position: relative; display: flex; justify-content: center; min-height: 420px; align-items: center; }
.why-fig { position: absolute; width: 130px; }
.why-fig svg { width: 100%; height: auto; overflow: visible; }
.why-fig .bubble { bottom: 100%; right: 30%; margin-bottom: 4px; }
.fig-lu { right: -10px; bottom: -10px; }
.fig-bruno { left: 2%; bottom: 0; }
.fig-bruno .bubble { left: 50%; right: auto; }
.trips { width: min(400px, 100%); padding: 26px 26px 22px; border-radius: 28px; background: linear-gradient(180deg, #1a1614, #110e0c); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.trips > small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.trips ul { list-style: none; margin: 0; padding: 0; }
.trips li { position: relative; padding: 11px 0 11px 34px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); transition: color .5s; }
.trips li::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid #5b534c; transition: background .4s, border-color .4s; }
.trips li::after { content: ""; position: absolute; left: 34px; top: 50%; height: 2px; width: 0; background: var(--accent); transition: width .45s var(--ease); }
.trips li:not(.gone)::before { border-color: #2f9a6a; background: #2f9a6a; }
.trips.go li.gone { color: var(--dim); }
.trips.go li.gone::before { border-color: var(--accent-ink); background: var(--accent-ink); }
.trips.go li.gone::after { width: calc(100% - 34px); }
.trips-result { margin-top: 18px; font-size: 18px; color: var(--muted); }
.trips-result b { color: var(--text); font-size: 32px; letter-spacing: -.04em; margin-right: 4px; }
.trips .note { display: block; margin-top: 8px; color: var(--dim); font-size: 12.5px; }
.stats { display: flex; gap: 40px; margin-top: 30px; }
.stats b { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 650; letter-spacing: -.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats > div > span { color: var(--muted); font-size: 15px; }
.source { margin-top: 18px; color: var(--dim); font-size: 13px; max-width: 480px; }
.source a { text-decoration: underline; }
.upsell { overflow: visible; }
.upsell .ring { position: absolute; left: -8px; right: -8px; top: 77%; height: 9%; border-radius: 20px; border: 3px solid var(--accent); box-shadow: 0 0 0 6px rgba(255, 138, 76, .2); animation: ringpulse 2s ease-in-out infinite; }
@keyframes ringpulse { 50% { box-shadow: 0 0 0 12px rgba(255, 138, 76, 0); } }

/* evening gallery: pinned horizontal scroll on desktop, swipe on phones */
.evening { position: relative; }
.evening-head { margin-bottom: 40px; }
.evening-head .label { display: block; margin-bottom: 18px; }
.evening .hint { display: none; color: var(--muted); font-size: 14px; margin-top: 12px; }
.evening-track { display: flex; gap: 48px; padding: 0 max(20px, calc((100vw - 1160px) / 2)); }
.ev { margin: 0; flex: none; }
.ev figcaption { margin-top: 22px; max-width: 300px; color: var(--muted); font-size: 15.5px; }
.ev figcaption b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
@media (min-width: 961px) {
  .evening { height: 300vh; }
  .evening-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .evening-track { transform: translate3d(var(--tx, 0), 0, 0); will-change: transform; }
  .ev .device { transform: rotate(var(--tilt, 0deg)); transition: transform .6s var(--ease); }
  .ev:nth-child(odd) { --tilt: -2deg; } .ev:nth-child(even) { --tilt: 2deg; margin-top: 50px; }
}

/* team tablet */
.sec-head.center { margin-inline: auto; text-align: center; }
.switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: 30px; border-radius: 999px; background: var(--bg-2); }
.switch button { font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.switch button.on { background: var(--text); color: #000; }
.tablet-stage { perspective: 1600px; max-width: 1060px; margin: 0 auto; }
.tablet-stage .device { transform: rotateX(var(--tilt, 24deg)) scale(var(--sc, .9)); transform-origin: center top; transition: transform .2s linear; }
.tablet .shot { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); opacity: 0; transform: scale(1.02); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.tablet .shot.on { opacity: 1; transform: none; }
.team-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.team-points b { display: block; font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.team-points span { color: var(--muted); font-size: 15.5px; }

/* languages */
.langs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.langs .lead { margin-top: 22px; }
.lang-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.lang-btns button { font: inherit; font-weight: 700; font-size: 15px; width: 56px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-1); color: var(--muted); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.lang-btns button:hover { transform: translateY(-2px); }
.lang-btns button.on { background: var(--accent); border-color: var(--accent); color: #1a0d05; }
.oli-stage { position: relative; display: grid; justify-items: center; padding: 40px 0; }
.oli-stage::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 76, .22), transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -45%); }
.oli-say { position: relative; z-index: 2; max-width: 340px; padding: 16px 20px; border-radius: 20px; background: #fff7ee; color: #1f1a17; font-weight: 600; font-size: 17px; text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); min-height: 80px; display: grid; place-items: center; }
.oli-say::after { content: ""; position: absolute; bottom: -9px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-top-color: #fff7ee; border-bottom: 0; }
.oli-costumes { position: relative; width: 220px; height: 240px; margin-top: 12px; }
.oli-costumes span { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.6) rotate(-10deg); transition: opacity .35s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.oli-costumes span.on { opacity: 1; transform: none; }
.oli-costumes svg { width: 210px; height: auto; overflow: visible; }

/* prices teaser + cta */
.cta { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.cta .wrap { position: relative; z-index: 2; }
.rain { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.rain img { position: absolute; top: -90px; left: var(--x); width: var(--s); opacity: .55; animation: fall var(--t) linear var(--dl) infinite; }
@keyframes fall { to { transform: translateY(calc(100vh + 900px)) rotate(var(--r)); } }
.crew { display: flex; gap: 6px; margin-bottom: 20px; align-items: flex-end; }
.crew span { width: 92px; }
.crew svg { width: 100%; height: auto; overflow: visible; }
.hop { animation: hop 2.6s ease-in-out infinite; }
.hop.d2 { animation-delay: .3s; } .hop.d3 { animation-delay: .6s; }
@keyframes hop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-14px); } 90% { transform: translateY(2px); } }

/* responsive */
@media (max-width: 960px) {
  .hero { padding-top: 104px; min-height: 0; }
  .hero-grid, .langs-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { height: 560px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-phone { right: 50%; transform: translateX(50%); }
  .device.phone { width: 260px; }
  .device.phone.small { width: 240px; }
  .hero-card { width: 130px; left: 0; bottom: 30px; }
  .hero-oli { width: 104px; right: 0; bottom: 20px; }
  .pops { top: 30px; }
  .pop { font-size: 13px; padding: 9px 13px 9px 10px; }
  .why { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .why.flip .why-text { order: 0; }
  .why-visual { min-height: 0; }
  .why-text > p { font-size: 17px; }
  .why-fig { width: 96px; }
  .stats { gap: 28px; }
  .evening { padding: 80px 0 40px; }
  .evening .hint { display: block; }
  .evening-track { overflow-x: auto; scroll-snap-type: x mandatory; gap: 22px; padding: 0 20px 20px; scrollbar-width: none; }
  .evening-track::-webkit-scrollbar { display: none; }
  .ev { scroll-snap-align: center; }
  .ev .device.phone { width: 240px; }
  .ev figcaption { max-width: 240px; }
  .team-points { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; }
  .tablet-stage .device { padding: 8px; border-radius: 20px; }
  .tablet .shot { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 13px; }
  .oli-costumes { height: 200px; }
  .oli-costumes svg { width: 170px; }
}
@media (max-width: 640px) {
  .hero-stage { height: 520px; }
  .hero-card { width: 116px; bottom: 60px; }
  .floaters img { --s: 64px !important; opacity: .5; }
  .floaters img:nth-child(n + 4) { display: none; }
  .stats b { font-size: 46px; }
  .bubble { font-size: 13px; padding: 8px 12px; }
  .fig-lu .bubble { right: 10%; }
  .crew span { width: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .floaters img, .mq-track, .rain img, .hop, .upsell .ring { animation: none; }
  .hero-phone, .tablet-stage .device { transform: none; }
}
@media (max-width: 960px) {
  .why-visual { flex-direction: column; }
  .why-fig { position: relative; left: auto; right: auto; bottom: auto; align-self: flex-end; margin: -40px 6px 0 0; z-index: 2; }
  .why-fig .bubble { right: 100%; left: auto; bottom: 50%; margin: 0 -6px 0 0; }
  .fig-bruno { align-self: flex-start; margin: -40px 0 0 6px; }
  .fig-bruno .bubble { left: 100%; right: auto; margin: 0 0 0 -6px; }
}
@media (max-width: 640px) { .pops { display: none; } }
@media (min-width: 961px) {
  .evening-head { margin-bottom: 28px; }
  .ev .device.phone { width: clamp(200px, calc((100vh - 300px) / 2.16), 300px); }
  .ev:nth-child(even) { margin-top: 30px; }
}
@media (min-width: 961px) { .evening-pin { padding-top: 68px; } }
/* show the whole screen: the device grows around the screenshot */
.device.phone { aspect-ratio: auto; height: auto; }
.device.phone img { height: auto; aspect-ratio: 390 / 844; object-fit: contain; }
.device.tablet { aspect-ratio: auto; }
.tablet .shot:first-child { position: relative; inset: auto; width: 100%; height: auto; }
.tablet .shot { height: auto; aspect-ratio: 1180 / 820; object-fit: contain; }
.why-n { font-size: 14px; letter-spacing: .01em; }

/* Ordalo character on the home page */
.marquee { border-color: transparent; background: var(--rule) repeat-x left top / 260px 6px, var(--rule) repeat-x left bottom / 260px 6px, var(--bg); }
.mq-track span { font-family: var(--display); }
.why { border-top-color: transparent; background: var(--rule) repeat-x left top / 260px 6px; }
.why:first-of-type { background: none; }
.why h3, .ev figcaption b, .team-points b, .oli-say, .pop { font-family: var(--display); }
.trips li { border-bottom-color: transparent; background: var(--rule) repeat-x left bottom / 260px 6px; }
.trips, .device.tablet { border-radius: 30px 24px 32px 26px / 26px 32px 24px 30px; }
.hero h1::after { content: ""; display: block; width: 120px; height: 16px; margin-top: 16px; background: var(--squiggle) no-repeat left center / 120px 16px; animation: squiggle-draw 1s cubic-bezier(.22, .8, .2, 1) .9s both; }
