/* Rouse website. Colours and fonts match the app: dark #0c0c0e, gold, Fraunces titles, Figtree text. */
:root {
  --bg: #0c0c0e; --card: #17181e; --line: #2a2b33; --fg: #f3f1ea; --dim: #a7a6b0; --gold: #ffd43b;
  --display: "Fraunces", "Times New Roman", serif; --text: "Figtree", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font: 16px/1.55 var(--text); margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--gold); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1040px; margin: 0 auto; }

/* Google Play button */
.play { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #555; border-radius: 12px; padding: 9px 18px 9px 14px; text-decoration: none; }
.play svg { width: 24px; height: 26px; }
.play small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #ccc; line-height: 1.1; }
.play strong { display: block; font-size: 19px; line-height: 1.1; }

.foot { color: var(--dim); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; padding-block: 8px 28px; }
.foot a { color: inherit; }

/* ---- Home page (owner pick: Blend 1 of looks B + F) ---- */
.home { padding-block: 56px 8px; overflow: hidden; }
.home > .inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }

/* Clock: gold ring, mission badges as the hours (--a = angle), name in the middle */
.clock { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }
.clock::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 8px #17181e, 0 0 60px #ffd43b33, inset 0 0 60px #ffd43b14; }
.clock > .b { position: absolute; width: 13%; left: calc(50% + 43% * cos(var(--a)) - 6.5%); top: calc(50% + 43% * sin(var(--a)) - 6.5%); }
.clock .mid { position: absolute; inset: 24%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; }
.clock .mid img { width: 58%; border-radius: 22%; box-shadow: 0 0 0 3px #ffd43b, 0 0 40px #ffd43b77, 0 14px 30px #000a; }
.clock .name { font: 700 clamp(30px, 5vw, 46px)/1 var(--display); }
/* The badge files have a dark square behind the round picture: show only the circle. */
.b { clip-path: circle(47%); }

.side { display: grid; gap: 18px; justify-items: start; }
.side h1 { font-size: clamp(36px, 5.6vw, 58px); line-height: 1.04; }
.side h1 em { color: var(--gold); font-style: normal; }
.lead { color: var(--dim); font-size: 19px; max-width: 34ch; }
.fan { width: 100%; display: flex; justify-content: center; align-items: flex-start; padding: 16px 4% 10px; }
.phone { border-radius: 30px; padding: 7px; background: #1d1e24; box-shadow: 0 0 0 1px #33343c, 0 24px 50px #000a; }
.phone img { border-radius: 24px; width: 100%; }
.fan .phone { flex: none; width: min(180px, 34%); }
.fan .phone:nth-child(1) { rotate: -8deg; margin-top: 34px; margin-right: -7%; }
.fan .phone:nth-child(2) { position: relative; z-index: 1; }
.fan .phone:nth-child(3) { rotate: 8deg; margin-top: 34px; margin-left: -7%; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.card { --c: #34d399; border-radius: 22px; padding: 18px; display: grid; gap: 4px; align-content: start;
  border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line));
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 26%, var(--card)), var(--card) 70%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 18%, transparent); }
.card img { width: 60px; margin-bottom: 8px; filter: drop-shadow(0 6px 14px #0008); }
.card h2 { font-size: 19px; line-height: 1.2; }
.card p { color: var(--dim); font-size: 15px; }

.shots h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 14px; }
.row { display: flex; gap: 16px; overflow-x: auto; padding-block: 4px 12px; }
/* Six phones fit across a computer screen; on a phone the row scrolls sideways. Each has a name and a line under it. */
.row figure { flex: 1 0 150px; max-width: 190px; margin: 0; text-align: center; }
.row .phone { width: 100%; border: 0; cursor: zoom-in; }
.row figcaption b { display: block; margin-top: 12px; font: 700 17px var(--display); }
.row figcaption span { color: var(--dim); font-size: 14px; }
/* A screenshot opened big over the page */
.big { position: fixed; inset: 0; z-index: 20; background: #000d; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.big[hidden] { display: none; }
.big img { max-height: 92vh; max-width: 92vw; width: auto; border-radius: 28px; box-shadow: 0 30px 80px #000; }
.big .close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #ffffff22; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

.missions h2 { font-size: clamp(24px, 4vw, 32px); }
.missions > p { color: var(--dim); margin-block: 6px 22px; }
/* Two lanes drift opposite ways; each lane holds its list twice so moving half its width loops without a jump. */
.parade { display: grid; gap: 18px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lane { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; animation: lane-go 60s linear infinite; }
.lane.rev { animation-direction: reverse; }
.lane li { width: 96px; display: grid; justify-items: center; gap: 8px; text-align: center; font: 600 14px/1.2 var(--display); }
.lane img { width: 68px; aspect-ratio: 1; }
@keyframes lane-go { to { translate: -50% 0; } }
.parade:hover .lane { animation-play-state: paused; }

/* Weather gets its own spot with a blue glow */
.weather { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding: 36px; border-radius: 28px;
  background: radial-gradient(70% 90% at 75% 50%, #16305e, var(--bg) 72%); border: 1px solid #1d2a48; }
.weather h2 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.08; }
/* A small sun whose rays turn, and a cloud drifting past, above the heading */
.wx { position: relative; width: 120px; height: 96px; margin-bottom: 10px; }
.wx .sun { position: absolute; left: 44px; top: 24px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(#fff3b0, #ffb703); box-shadow: 0 0 30px #ffb70388; }
.wx .rays { position: absolute; left: 24px; top: 4px; width: 84px; height: 84px; animation: rays-turn 14s linear infinite; }
.wx .rays i { position: absolute; left: 50%; top: 0; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 3px; background: #ffd43b; transform-origin: 1.5px 42px; rotate: calc(var(--r) * 45deg); }
@keyframes rays-turn { to { rotate: 360deg; } }
.wx .cloud { position: absolute; left: 10px; top: 58px; width: 58px; height: 22px; border-radius: 99px; background: #fff; box-shadow: 0 6px 16px #0004; animation: cloud-drift 6s ease-in-out infinite alternate; }
.wx .cloud::before { content: ""; position: absolute; left: 12px; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.wx .cloud::after { content: ""; position: absolute; left: 32px; top: -7px; width: 19px; height: 19px; border-radius: 50%; background: #fff; }
@keyframes cloud-drift { from { translate: 0 0; } to { translate: 40px 0; } }
.weather p { color: var(--dim); font-size: 18px; margin-top: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chips span { background: #1b2a4a; border: 1px solid #2f4a7a; border-radius: 99px; padding: 6px 14px; font-size: 14px; }
.weather .phone { width: 100%; max-width: 230px; justify-self: center; rotate: 3deg; box-shadow: 0 0 0 1px #33343c, 0 0 70px #4a8cff55; }

/* Ending: the app's sleepy clock, one big line, the Play button, then the small links */
.ending { display: grid; justify-items: center; gap: 14px; text-align: center; padding-top: 110px;
  background: radial-gradient(circle 230px at 50% 230px, #3a2c08, transparent); }
.ending h2 { font-size: clamp(32px, 6vw, 52px); }
.ending > p { color: var(--dim); font-size: 18px; }
.ending .foot { justify-content: center; margin-top: 24px; }
.sleepy { position: relative; width: 120px; aspect-ratio: 1; border-radius: 50%; background: #fff3d6; border: 8px solid #f5b92e; box-shadow: 0 0 40px #ffd43b66; margin-top: 18px; animation: rock 3s ease-in-out infinite; }
.sleepy::before, .sleepy::after { content: ""; position: absolute; top: -18px; width: 36px; height: 30px; border-radius: 50% 50% 10% 10%; background: #f5b92e; }
.sleepy::before { left: 0; rotate: -25deg; } .sleepy::after { right: 0; rotate: 25deg; }
.sleepy .eye { position: absolute; top: 52%; width: 18px; height: 9px; border-bottom: 3px solid #3a2a10; border-radius: 0 0 20px 20px; }
.sleepy .eye.l { left: 26%; } .sleepy .eye.r { right: 26%; }
.sleepy .hand { position: absolute; left: 50%; bottom: 50%; width: 4px; height: 30%; margin-left: -2px; background: #3a2a10; border-radius: 3px; transform-origin: bottom; rotate: -30deg; }
@keyframes rock { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
/* Tap the clock: eyes open, the hand spins, it jumps, then back to sleep */
.sleepy { padding: 0; cursor: pointer; }
.sleepy.awake { animation: jump .6s ease-out 3; }
.sleepy.awake .eye { height: 14px; width: 14px; border: 3px solid #3a2a10; border-radius: 50%; background: #fff; top: 44%; }
.sleepy.awake .hand { animation: hand-spin 1.8s linear 1; }
@keyframes jump { 0%, 100% { translate: 0; rotate: 0deg; } 30% { translate: 0 -28px; rotate: -12deg; } 60% { translate: 0 -10px; rotate: 10deg; } }
@keyframes hand-spin { to { rotate: 330deg; } }

/* Night sky behind the top: stars (added by site.js) and a crescent moon, spread to the page edges */
.top { position: relative; isolation: isolate; }
.sky { position: absolute; z-index: -1; top: -56px; bottom: -40px; left: calc(50% - 50vw); width: 100vw; pointer-events: none;
  background: radial-gradient(55% 75% at 30% 0%, #16204a, transparent 80%);
  -webkit-mask: linear-gradient(#000 75%, transparent); mask: linear-gradient(#000 75%, transparent); }
.sky .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
.sky .star.s { width: 2px; height: 2px; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.moon { position: absolute; top: 14px; right: max(24px, calc(50% - 640px)); width: 52px; aspect-ratio: 1; border-radius: 50%; box-shadow: -13px 7px 0 0 #ffe9a8; rotate: -20deg; filter: drop-shadow(0 0 14px #ffe9a855); }

/* Free and Premium side by side */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.plans h2 { grid-column: 1 / -1; font-size: clamp(24px, 4vw, 32px); }
.plan { border-radius: 22px; padding: 22px; border: 1px solid var(--line); background: var(--card); }
.plan.pro { border-color: #8a6d1a; background: radial-gradient(120% 80% at 50% 0%, #3a2c08, var(--card) 70%); box-shadow: 0 10px 30px #ffd43b22; }
.plan h3 { font-size: 26px; }
.plan .price { color: var(--dim); margin: 2px 0 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Phone-only parts: dots under the swipeable screenshots, and the Play bar at the bottom */
.dots { display: none; }
.getbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .lane, .sleepy, .sky .star, .wx .rays, .wx .cloud { animation: none; }
  .lane { width: auto; flex-wrap: wrap; justify-content: center; }
  .lane [aria-hidden] { display: none; }
}

@media (max-width: 760px) {
  .home > .inner { gap: 36px; }
  .top { grid-template-columns: minmax(0, 1fr); }
  .side { justify-items: center; text-align: center; }
  .weather { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 28px 20px; }
  .chips { justify-content: center; }
  .moon { top: 8px; right: 12px; width: 38px; box-shadow: -10px 5px 0 0 #ffe9a8; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  /* One big screenshot at a time, swiped sideways, with dots */
  .row { scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 15%; gap: 14px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
  .row::-webkit-scrollbar { display: none; }
  .row figure { flex: 0 0 70%; max-width: none; scroll-snap-align: center; }
  .wx { margin-inline: auto; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
  .dots i { width: 9px; height: 9px; border-radius: 99px; background: #3a3b44; transition: width .2s, background .2s; }
  .dots i.on { width: 22px; background: var(--gold); }
  /* Play button kept at the bottom while the other Play buttons are off screen */
  .getbar { display: flex; justify-content: center; position: fixed; z-index: 5; left: 0; right: 0; bottom: 0;
    padding: 22px 16px max(12px, env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, #0c0c0e 45%);
    transition: translate .3s, opacity .3s; }
  .getbar.away { translate: 0 100%; opacity: 0; pointer-events: none; }
}
@media (max-width: 420px) {
  .card:last-child { grid-column: 1 / -1; }
}

/* ---- Privacy page ---- */
.doc { padding-block: 32px 8px; }
.doc .inner { max-width: 720px; }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 22px var(--display); }
.back img { width: 40px; border-radius: 12px; }
.doc h1 { font-size: clamp(32px, 6vw, 46px); margin-block: 28px 6px; }
.doc .date { color: var(--dim); }
.doc h2 { font-size: 22px; margin-block: 30px 8px; color: var(--gold); }
.doc p, .doc li { color: #dcdad4; max-width: 65ch; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.doc .foot { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 18px; }
