/* coupleos.online — one sky, scene by scene. Built pages: scripts/build_site.py */
:root {
    --ink: #1E1D40;
    --gold: #FFD696;
    --day: linear-gradient(180deg, #2F6DB0 0%, #3F82C2 60%, #4184BE 100%);
    --dawn: linear-gradient(180deg, #5E6AA8 0%, #A66A8E 62%, #B46A5C 100%);
    --golden: linear-gradient(180deg, #C9673F 0%, #BE5566 60%, #9A4C78 100%);
    --evening: linear-gradient(180deg, #8E5C9E 0%, #5B3F86 60%, #352C63 100%);
    --night: linear-gradient(180deg, #2C2A55 0%, #1E1D40 60%, #14132B 100%);
    --round: ui-rounded, "SF Pro Rounded", Nunito, -apple-system, system-ui, sans-serif;
    --hand: Caveat, "Bradley Hand", cursive;
    color-scheme: dark;
}
* { box-sizing: border-box; }
/* The store scenes are drawn in content-box px: their phone frames pad around the screenshot */
.stage * { box-sizing: content-box; }
html { background: #14132B; overscroll-behavior-y: none; }
body { margin: 0; background: #14132B; color: #FFFFFF; font-family: var(--round); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #FFE9B8; outline-offset: 3px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 26px;
    background: #FFFFFF; color: var(--ink); font-size: 17px; font-weight: 800; text-decoration: none; text-shadow: none;
    box-shadow: 0 10px 28px rgba(10, 10, 40, .32); transition: transform .2s; }
.button:hover { transform: translateY(-2px); }

/* Hero: the store sky full bleed, with the header scene (wide) or the hero frame (phones) at its own size in the middle */
.hero { position: relative; overflow: hidden; margin-bottom: -2px; padding: 0 clamp(16px, 3vw, 40px) clamp(40px, 6vh, 64px); text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sky .stage { overflow: hidden; }
.sky.wide .stage { width: 1311px; height: 738px; }
.sky.tall { display: none; }
.sky.tall .stage { width: 430px; height: 932px; }
.nav, .scene, .get { position: relative; z-index: 2; }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; height: 76px; margin: 0 auto; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.scene { margin: 0 auto; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.scene.wide { width: min(100%, 1200px); aspect-ratio: 1311 / 738; }
.scene.wide .stage { width: 1311px; height: 738px; }
.scene.tall { display: none; }
.scene.tall .stage { width: 430px; height: 932px; }
.get { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vh, 44px); }
.get-main { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.button.big { min-height: 64px; padding: 0 36px; border-radius: 32px; font-size: 20px; }
.qr { display: flex; align-items: center; padding: 10px; border-radius: 24px; background: rgba(20, 19, 43, .38); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.qr-code { width: 104px; height: 104px; padding: 10px; border-radius: 16px; background: #FFFFFF; }
.qr-code svg { display: block; width: 100%; height: 100%; }

/* Features: one idea per screen on a plain night, the section's weather only as a glow behind the phone */
.feature { position: relative; padding: clamp(56px, 4vw + 40px, 112px) clamp(16px, 4vw, 40px); overflow: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.wrap.col { grid-template-columns: minmax(0, 1fr); }
.feature.flip .copy { order: 2; }
.copy { max-width: 520px; }
.copy.center { max-width: 640px; margin: 0 auto; text-align: center; }
.copy.center p { margin-left: auto; margin-right: auto; }
.feature h2 { margin: 0; font-size: clamp(38px, 4.6vw, 64px); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.feature h2 .gold, .card h3 .gold { display: block; }
.feature p { margin: 20px 0 0; max-width: 460px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.visual { position: relative; display: grid; place-items: center; padding: 24px 0; }
.visual::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(120%, 760px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 62%); opacity: .5; filter: blur(10px); animation: breathe 9s ease-in-out infinite; }
.phone { position: relative; width: clamp(220px, 32vh, 330px); padding: 9px; border-radius: 52px; background: #0A0A0E;
    box-shadow: 0 0 0 1.5px #5A5B66, 0 0 0 3px rgba(0, 0, 0, .5), 0 40px 80px rgba(0, 0, 0, .45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 44px; }
/* Two phones, as on the store frames: the second a little lower, overlapping, each tilted away */
.duo { position: relative; display: flex; align-items: flex-start; justify-content: center; padding: 24px 0 64px; }
.duo-one, .duo-two { position: relative; }
.duo-one { z-index: 2; rotate: -4deg; }
.duo-two { margin: 64px 0 0 -28px; rotate: 4deg; }
.duo .phone { width: clamp(190px, 27vh, 270px); }
.tag { position: absolute; z-index: 3; padding: 8px 14px; border-radius: 16px; background: #FFFFFF; color: var(--ink); font: 800 15px var(--round);
    white-space: nowrap; text-shadow: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.chalk { position: absolute; z-index: 3; left: 40%; top: 16%; width: 24%; overflow: visible; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.chalk path { fill: none; stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chalk.in path { animation: ink .9s ease .4s forwards; }
.chalk.in path + path { animation-delay: 1.2s; }
.float { position: absolute; z-index: 2; margin: 0; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .45)); }
img.float, .float img { height: auto; }
.sticker { border-radius: 50%; }
.polaroid { padding: 8px 8px 0; background: #FFFFFF; border-radius: 6px; }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { padding: 6px 0 8px; color: #2A2A33; font: 700 clamp(16px, 1.6vw, 22px) var(--hand); text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.card { position: relative; overflow: hidden; height: 560px; padding: 32px 28px 0; border-radius: 32px; text-align: center;
    background: radial-gradient(120% 80% at 50% 100%, rgba(224, 138, 92, .28), rgba(255, 255, 255, .03) 70%); border: 1px solid rgba(255, 255, 255, .08); }
.card h3 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.card-phone { position: relative; width: 78%; margin: 32px auto 0; }
.card-phone .phone { width: 100%; }
.card-pop { position: absolute; left: -10%; top: 26%; width: 120%; height: auto; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .45)); }

/* Two skies per section, as on the Couple Card: London on the left, Tokyo eight hours ahead on the right. The seam
   leans the other way each section; each half's colours come from the build, so the skies run on unbroken. */
.halves { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.half { position: absolute; inset: 0; overflow: hidden; }
.seam-a { --t: 56%; --b: 44%; }
.seam-b { --t: var(--seam-top, 44%); --b: 56%; }
.half.l { clip-path: polygon(0 0, calc(var(--t) + 1px) 0, calc(var(--b) + 1px) 100%, 0 100%); }
.half.r { clip-path: polygon(var(--t) 0, 100% 0, 100% 100%, var(--b) 100%); }
.sky-night { background: var(--night); }
.sky-dawn { background: var(--dawn); }
.sky-day { background: var(--day); }
.sky-gold { background: var(--golden); }
.sky-cloudy { background: linear-gradient(180deg, #4E6A8C 0%, #6A84A6 60%, #7690B0 100%); }
.sky-snow { background: linear-gradient(180deg, #5C7594 0%, #7D93B0 60%, #8DA1BB 100%); }
.sky-sunset { background: linear-gradient(180deg, #5B4A8A 0%, #B65E78 55%, #E08A5C 100%); }
.kick { position: absolute; z-index: 1; top: 88px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.kick.l { left: clamp(16px, 4vw, 56px); }
.kick.r { right: clamp(16px, 4vw, 56px); }
.feature .wrap { position: relative; z-index: 1; }
/* Each sky slides 2px under the next, so a fractional edge never lets the page colour through as a line. */
.feature + .feature, .feature + .live { margin-top: -2px; }
.feature { text-shadow: 0 1px 12px rgba(10, 10, 40, .35); }
.feature p { color: rgba(255, 255, 255, .88); }
.w-sun { position: absolute; top: 150px; width: 220px; height: 220px; border-radius: 50%; translate: -50% -50%;
    background: radial-gradient(circle, #FFF6DC 0 11%, #FFD696 17%, rgba(255, 214, 150, .35) 26%, rgba(255, 214, 150, 0) 64%); }
.half.l .w-sun { left: 12%; } .half.r .w-sun { left: 88%; }
.w-moon { position: absolute; top: 150px; width: 44px; height: 44px; border-radius: 50%; translate: -50% -50%; overflow: hidden;
    background: radial-gradient(circle at 36% 38%, #F4F1E6 0%, #E4E2D8 60%, #CFCFC8 100%); box-shadow: 0 0 36px rgba(230, 235, 255, .5); }
.w-moon span { position: absolute; left: 34%; top: -8%; width: 90%; height: 116%; border-radius: 50%; background: rgba(28, 27, 60, .84); }
.half.l .w-moon { left: 10%; } .half.r .w-moon { left: 90%; }
/* Rain: single drops in three depths, each on its own speed and start; leaning as on the store frames */
.stage .rain { display: none; }
.drops { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.half .drops, .half .flakes { -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.drop { position: absolute; top: 0; border-radius: 1px; rotate: 14deg; will-change: transform;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, var(--o)));
    animation: fall var(--t) linear var(--d) infinite; }
@keyframes fall { from { transform: translate3d(0, -120px, 0); } to { transform: translate3d(calc(var(--fall) * -.25), var(--fall), 0); } }
.flakes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sf { position: absolute; top: -20px; animation: snowfall linear infinite; will-change: transform; }
.sf i { display: block; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 38%, rgba(255, 255, 255, 0) 72%); animation: sway ease-in-out infinite alternate; }
@keyframes snowfall { from { transform: translate3d(0, -20px, 0); } to { transform: translate3d(0, var(--fall), 0); } }
@keyframes sway { from { transform: translateX(calc(var(--sway) * -1)); } to { transform: translateX(var(--sway)); } }
.live::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(180deg, rgba(44, 42, 85, 0), #2C2A55); pointer-events: none; }

/* Enter once, as they come into view */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* Live: the visitor's sky on the left, a city of their choosing on the right */
.live { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; text-shadow: 0 2px 14px rgba(10, 10, 40, .35); }
.half { position: absolute; inset: 0; }
.half.you { clip-path: polygon(0 0, calc(56% + 1px) 0, calc(44% + 1px) 100%, 0 100%); }
.half.them { clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%); }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.layer.on { opacity: 1; }
.layer[data-phase="0"] { background: var(--night); }
.layer[data-phase="1"] { background: var(--dawn); }
.layer[data-phase="2"] { background: var(--day); }
.layer[data-phase="3"] { background: var(--golden); }
.layer[data-phase="4"] { background: var(--evening); }
.stars, .clouds { position: absolute; inset: 0; transition: opacity 1.4s ease; }
.star { position: absolute; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 6px rgba(255, 255, 255, .7); animation: twinkle 3.6s ease-in-out infinite; }
.sun { position: absolute; width: 260px; height: 260px; border-radius: 50%; transform: translate(-50%, -50%);
    background: radial-gradient(circle, #FFF6DC 0 12%, #FFD696 18%, rgba(255, 214, 150, .4) 26%, rgba(255, 214, 150, 0) 64%);
    transition: left 1.4s ease, top 1.4s ease, opacity 1.4s ease; }
.moon { position: absolute; width: 56px; height: 56px; border-radius: 50%; transform: translate(-50%, -50%); overflow: hidden;
    background: radial-gradient(circle at 36% 38%, #F4F1E6 0%, #E4E2D8 60%, #CFCFC8 100%); box-shadow: 0 0 40px rgba(230, 235, 255, .55);
    transition: left 1.4s ease, top 1.4s ease, opacity 1.4s ease; }
.moon span { position: absolute; left: 34%; top: -8%; width: 90%; height: 116%; border-radius: 50%; background: rgba(28, 27, 60, .84); }
.cloud { position: absolute; animation: drift 18s ease-in-out infinite alternate; }
.live-in { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 56px);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.clocks { width: 100%; display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(8px, 4vh, 48px); text-align: left; }
.clock { display: flex; flex-direction: column; gap: 4px; }
.clock.right { align-items: flex-end; text-align: right; }
.who { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.time { font-size: clamp(52px, 9vw, 128px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.phase { font-size: 17px; font-weight: 600; opacity: .9; }
.live h2, .end h2 { margin: 0; font-size: clamp(40px, 6vw, 88px); font-weight: 900; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.live p, .end p { margin: 0; max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.45; opacity: .92; }
.hand { font-family: var(--hand); font-size: clamp(28px, 3vw, 34px); font-weight: 700; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 680px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12);
    color: #FFFFFF; font: 700 15px var(--round); cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); }

/* End: night, a moon, now and then a falling star */
.end { position: relative; overflow: hidden; background: var(--night); }
.end-sky { position: absolute; inset: 0; }
.end-sky .moon { left: auto; right: 9%; top: 12%; width: 64px; height: 64px; transform: none; }
.shoot { position: absolute; right: 12%; top: 10%; width: 120px; height: 2px; border-radius: 1px; opacity: 0;
    background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, 0)); animation: shoot 9s ease-in 2s infinite both; }
.end-in { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(96px, 16vh, 160px) clamp(16px, 4vw, 40px) 40px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.end .hand { transform: rotate(-3deg); }
.gold { color: var(--gold); }
.small { font-size: 14px; font-weight: 600; opacity: .8; }
.foot { width: 100%; margin-top: clamp(72px, 12vh, 120px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 14px; font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { padding: 12px 0; opacity: .8; text-decoration: none; }
.foot nav a:hover, .foot nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Tablets and phones: one column, the copy above its phones, the three cards in a row you swipe */
@media (max-width: 1024px) {
    .feature.split { padding-top: 136px; }
    .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .feature.flip .copy { order: 0; }
    .copy { text-align: center; margin: 0 auto; }
    .feature p { margin-left: auto; margin-right: auto; }
    .visual { min-height: 0; padding: 24px 0; }
    .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 40px calc(-1 * clamp(16px, 4vw, 40px)) 0; padding: 0 clamp(16px, 4vw, 40px) 8px; scrollbar-width: none; }
    .card { flex: 0 0 min(82%, 360px); scroll-snap-align: center; height: 520px; }
}

/* Phones: the hero frame, and the download button always in reach */
.bar { display: none; }
@media (max-width: 700px) {
    .hero { padding: 12px 12px 96px; }
    .nav { display: none; }
    .sky.wide, .scene.wide { display: none; }
    .sky.tall, .scene.tall { display: block; }
    .get { display: none; }
    .button.big { min-height: 56px; font-size: 18px; }
    .bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center;
        justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 32px; background: rgba(20, 19, 43, .72);
        -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .18); font-size: 15px; font-weight: 800; }
    .small-button { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; }
    .end-in { padding-bottom: 112px; }
    .feature.split { padding-top: 96px; }
    .kick { top: 40px; font-size: 11px; }
    .w-sun, .w-moon { top: 76px; }
    .w-sun { width: 150px; height: 150px; }
    .half.l .w-sun, .half.l .w-moon { left: 22%; }
    .half.r .w-sun, .half.r .w-moon { left: 80%; }
    .duo { --m: .3; padding-bottom: 40px; }
    .duo .phone { width: 40vw; border-radius: 30px; padding: 6px; }
    .duo .phone img { border-radius: 25px; }
    .duo-two { margin: 40px 0 0 -6vw; }
    .tag { padding: 6px 10px; border-radius: 12px; font-size: 12px; }
    .phone { width: min(58vw, 250px); border-radius: 44px; }
    .phone img { border-radius: 36px; }

    .live .clouds { display: none; }
    .live .sun { width: 170px; height: 170px; }
    .live .moon { width: 40px; height: 40px; }
    .end-sky .moon { right: 6%; top: 3%; width: 44px; height: 44px; }
    .foot { justify-content: center; text-align: center; }
    .foot nav { justify-content: center; }
}

/* Motion: the scenes' pieces are hooked to these by the generator */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rain { to { background-position: 0 1100px; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes drift { 0% { transform: translate(-90px, 0); } 50% { transform: translate(0, -8px); } 100% { transform: translate(90px, 0); } }
@keyframes sway { from { transform: translate(-4px, -10px); } to { transform: translate(5px, 14px); } }
@keyframes march { to { stroke-dashoffset: -50; } }
@keyframes bob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -6px); } }
@keyframes write { from { opacity: 0; clip-path: inset(-30% 100% -30% -10%); } to { opacity: 1; clip-path: inset(-30% -30% -30% -10%); } }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes breathe { 0%, 100% { opacity: .6; scale: 1; } 50% { opacity: .85; scale: 1.06; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shoot { 0%, 86% { opacity: 0; transform: translate(0, 0) rotate(-24deg); } 88% { opacity: 1; } 100% { opacity: 0; transform: translate(-420px, 190px) rotate(-24deg); } }
.rain { animation: rain 3s linear infinite; }
.twinkle { animation: twinkle 3.6s ease-in-out infinite; }
.drift { animation: drift 18s ease-in-out infinite alternate; }
.flake { animation: sway 4s ease-in-out infinite alternate; }
.march { animation: march 2.4s linear infinite; }
.bob { animation: bob 3.2s ease-in-out infinite; }
.ink { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink .5s ease forwards; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; translate: 0 0; }
    .ink, .chalk path { stroke-dashoffset: 0; }
    .shoot { display: none; }
    .drop, .sf { top: var(--ry); }
}
