/* Rhythme site: the app's own look (room.css tokens), light only. */
:root {
  --paper: #f8f3fb; --paper-2: #f1e9f7; --card: #ffffff;
  --ink: #3b2d52; --ink-2: #6f5f8c; --plum: #5a4274; --mauve: #7a5c96;
  --lilac: #c9b6e6; --lilac-2: #e7dcf5; --blush: #f6c9d6; --blush-2: #fbe3ea;
  --cream: #fff6ec; --gold: #f3d49b; --mint: #bfe3d4;
  --shadow: 0 10px 30px rgba(90, 66, 116, .18);
  --shadow-lg: 0 28px 60px rgba(90, 66, 116, .24);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --edge-fade: linear-gradient(90deg, transparent 0, #000 var(--fade, 20px), #000 calc(100% - var(--fade, 20px)), transparent 100%);
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.6 var(--sans); overflow-x: hidden }
img { max-width: 100%; height: auto; display: block }
a { color: var(--mauve) }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--plum); margin: 0; text-wrap: balance; letter-spacing: -.005em }
p { margin: 0; text-wrap: pretty }
.ms { font-family: "Material Symbols Outlined"; font-weight: 400; font-style: normal; font-size: 22px; line-height: 1; display: inline-block; font-variation-settings: "FILL" 0, "wght" 400; user-select: none }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 12px; z-index: 100 }
.skip:focus { left: var(--gut) }
:focus-visible { outline: 3px solid #7b5db3; outline-offset: 3px; border-radius: 10px }

/* buttons, as in the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 14px 22px; font: 800 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease; white-space: nowrap }
.btn:active { transform: scale(.97) }
.btn.primary { background: linear-gradient(135deg, #7b5db3, #5f4596); color: #fff; box-shadow: 0 6px 18px rgba(122, 92, 150, .35) }
.btn.ghost { background: rgba(255, 255, 255, .6); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px rgba(107, 82, 142, .2) }
.btn.small { padding: 11px 16px; font-size: 14px }
.btn.big { padding: 17px 30px; font-size: 16px }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; padding: max(10px, env(safe-area-inset-top, 0px)) var(--gut-r) 0 var(--gut) }
.nav-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 4px 18px rgba(90, 66, 116, .1) }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none }
.brand img { width: 34px; height: 34px; border-radius: 10px }
.brand span { font: 600 17px/1 var(--serif); letter-spacing: .18em; color: var(--plum) }
.links { display: flex; gap: 2px; margin-left: auto }
.links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 13px; border-radius: 12px }
.links a:hover { background: var(--lilac-2); color: var(--plum) }
@media (max-width: 760px) { .links { display: none } .nav .btn { margin-left: auto } }

section { padding: clamp(64px, 9vw, 112px) var(--gut-r) 0 var(--gut) }
.sec-title { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.12; text-align: center }
.sec-sub { text-align: center; color: var(--ink-2); margin: 12px auto 0; max-width: 34em }

/* hero: the room as a little diorama */
.hero { position: relative; padding-top: clamp(28px, 5vw, 56px); overflow-x: clip }
.hero::before { content: ""; position: absolute; inset: -160px 0 calc(-1 * clamp(260px, 42vh, 460px)) 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%);
  background: radial-gradient(42% 46% at 78% 40%, rgba(201, 182, 230, .55), transparent 70%), radial-gradient(34% 38% at 12% 18%, rgba(246, 201, 214, .45), transparent 70%), radial-gradient(30% 30% at 60% 96%, rgba(243, 212, 155, .28), transparent 70%), radial-gradient(60% 40% at 50% 70%, rgba(231, 220, 245, .7), transparent 75%), linear-gradient(180deg, #f1e8f8 0%, rgba(241, 232, 248, 0) 100%) }
.hero-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: center }
.hero-copy { min-width: 0 }
.hero h1 { font-size: clamp(2.4rem, 5.1vw, 3.7rem); line-height: 1.06 }
.lede { margin-top: 22px; font-size: 1.15rem; color: var(--ink-2); max-width: 27em }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px }
.note { margin-top: 14px; font-size: .92rem; color: var(--ink-2) }
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: -1 }
.sparkles i { position: absolute; width: 14px; aspect-ratio: 1; background: var(--c, #fff); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: .8; animation: twinkle 3.6s ease-in-out infinite }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) } 50% { opacity: .95; transform: scale(1) } }

.diorama { position: relative; width: min(470px, 82vw); margin: 0 auto 56px; --p: 0; animation: rise 1s cubic-bezier(.2, .8, .2, 1) both }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98) } to { opacity: 1; transform: none } }
.frame { position: relative; aspect-ratio: 3 / 4; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, .75); background: #cdbaea; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1) }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06) translateY(calc(var(--p) * -14px)) }
.rhea { position: absolute; left: 50.1%; top: 79%; width: 11.8%; transform: translate(-50%, -100%) translateY(calc(var(--p) * -14px)) }
.win { position: absolute; left: 36.9%; top: 32.6%; width: 18.8%; height: 14.2%; transform: translate(-50%, -50%) translateY(calc(var(--p) * -14px)); border-radius: 50%; overflow: hidden; pointer-events: none }
.win i { position: absolute; top: 56%; width: 46%; height: 30%; border-radius: 999px; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), transparent); opacity: .7; animation: drift 30s linear infinite }
.win i + i { top: 30%; width: 34%; opacity: .5; animation-duration: 22s; animation-delay: -11s }
@keyframes drift { from { transform: translateX(-120%) } to { transform: translateX(320%) } }
.bulbs i { position: absolute; width: 3.4%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) translateY(calc(var(--p) * -14px)); background: radial-gradient(closest-side, rgba(255, 236, 190, .95), rgba(255, 210, 140, .4) 45%, transparent); mix-blend-mode: screen; animation: glow 2.8s ease-in-out infinite; pointer-events: none }
@keyframes glow { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
.luna { position: absolute; width: 30%; right: -11%; top: -7%; transform: translateY(calc(var(--p) * -46px)); animation: float 6s ease-in-out infinite }
.mew { position: absolute; width: 31%; left: -12%; bottom: -8%; transform: translateY(calc(var(--p) * -22px)) }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -3deg } 50% { translate: 0 -12px; rotate: 3deg } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); text-align: center }
  .lede { margin-left: auto; margin-right: auto }
  .cta { justify-content: center }
  .diorama { width: min(400px, 74vw); margin-top: 8px }
}

/* what you can do: storybook rows */
.rows { max-width: 1040px; margin: 48px auto 0; display: grid; gap: clamp(40px, 6vw, 72px) }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center }
.row.flip .row-art { order: 2 }
.row-copy { max-width: 26em }
.row-copy h3 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.2 }
.row-copy p { margin-top: 12px; color: var(--ink-2) }
.row-art { position: relative; aspect-ratio: 5 / 4; border-radius: 36px }
.row-art::before { content: ""; position: absolute; inset: 6% 8%; border-radius: 50%; background: var(--tint, var(--lilac-2)); filter: blur(2px) }
.art-luna { --tint: var(--lilac-2) }
.art-luna .a1 { position: absolute; left: 14%; top: 4%; width: 44%; border-radius: 24px; box-shadow: var(--shadow); rotate: -4deg }
.art-luna .a2 { position: absolute; right: 8%; bottom: 0; width: 46% }
.art-food { --tint: var(--blush-2) }
.art-food img { position: absolute; width: 34% }
.art-food .f1 { left: 14%; top: 12%; width: 40% }
.art-food .f2 { right: 12%; top: 8% }
.art-food .f3 { left: 24%; bottom: 2% }
.art-food .f4 { right: 18%; bottom: 8%; width: 28% }
.art-erin { --tint: #e3f2ea }
.art-erin .e1 { position: absolute; left: 12%; bottom: 4%; width: 46% }
.art-erin .e2 { position: absolute; right: 16%; bottom: 4%; width: 25% }
.art-world { --tint: #fbf0d9 }
.art-world .w1 { position: absolute; left: 20%; top: 2%; width: 46%; border-radius: 24px; box-shadow: var(--shadow); rotate: 3deg }
.art-world .w2 { position: absolute; left: 6%; bottom: 0; width: 25% }
.art-world .w3 { position: absolute; right: 8%; bottom: 2%; width: 25% }
@media (max-width: 760px) {
  .row { grid-template-columns: minmax(0, 1fr); text-align: center }
  .row.flip .row-art { order: 0 }
  .row-copy { margin: 0 auto }
  .row-art { width: min(100%, 420px); margin: 0 auto }
}

/* real screens */
.phones { max-width: 1080px; margin: 40px auto 0; display: flex; justify-content: center; gap: clamp(16px, 2.5vw, 32px) }
.phone { margin: 0; flex: 0 1 230px; min-width: 0; display: grid; gap: 14px; justify-items: center }
.bezel { width: 100%; aspect-ratio: 390 / 844; padding: 7px; border-radius: 36px; background: var(--ink); box-shadow: var(--shadow-lg) }
.bezel img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; background: var(--paper-2) }
.phone figcaption { font: 600 1.05rem/1.2 var(--serif); color: var(--plum) }
.phones:focus-visible { outline-offset: 10px }
@media (max-width: 860px) {
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px calc(-1 * var(--gut-r)) -32px calc(-1 * var(--gut)); padding: 24px var(--gut-r) 56px var(--gut); scroll-padding-inline: var(--gut); -webkit-overflow-scrolling: touch; -webkit-mask-image: var(--edge-fade); mask-image: var(--edge-fade); --fade: 14px }
  .bezel { box-shadow: 0 16px 30px rgba(90, 66, 116, .2) }
  .phone { flex: 0 0 214px; scroll-snap-align: start }
}

/* life stages: one path */
.path { list-style: none; padding: 0; max-width: 1120px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: none }
.path::before { content: ""; position: absolute; left: 8%; right: 8%; top: 64px; border-top: 2.5px dotted var(--lilac); z-index: 0 }
.path li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 6px }
.path img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; background: var(--lilac-2); box-shadow: 0 0 0 6px var(--paper), var(--shadow); margin-bottom: 8px }
.path b { font: 600 1.12rem/1.25 var(--serif); color: var(--plum) }
.path span { font-size: .92rem; line-height: 1.45; color: var(--ink-2); max-width: 13em }
@media (max-width: 960px) {
  .path { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 22px }
  .path::before { left: 44px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 2.5px dotted var(--lilac) }
  .path li { grid-template-columns: 88px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 18px; row-gap: 2px; align-items: center }
  .path img { width: 88px; height: 88px; margin: 0; grid-row: 1 / span 2 }
  .path b { align-self: end }
  .path span { align-self: start }
}

/* become a tester: shared by the home page and /testers */
.testers-band { padding-top: clamp(56px, 8vw, 96px) }
.tester-cta { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; padding: clamp(22px, 3.5vw, 36px); border-radius: 30px; background: radial-gradient(120% 120% at 100% 0%, var(--blush-2), transparent 55%), linear-gradient(160deg, var(--lilac-2), var(--paper-2)); box-shadow: var(--shadow) }
.cta-art { width: 150px }
.tester-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; color: var(--plum) }
.tester-cta .cta-copy p { color: var(--ink-2); margin-top: 6px }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px }
.cta-row .btn .ms { font-size: 20px }
.cta-num { color: var(--ink-2); font-size: .95rem }
.cta-num b { color: var(--plum); white-space: nowrap; user-select: all }
.cta-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-weight: 700; color: var(--mauve); text-decoration: none }
.cta-link:hover { text-decoration: underline; text-underline-offset: 4px }
.cta-link .ms { font-size: 18px }
@media (max-width: 600px) {
  .tester-cta { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center }
  .cta-art { width: 116px }
  .cta-row { justify-content: center }
}

/* places shelf */
.places-head { max-width: 1120px; margin: 0 auto; display: flex; align-items: end; justify-content: center; gap: 24px; position: relative }
.shelf-btns { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px }
.round { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--card); color: var(--plum); box-shadow: var(--shadow); display: grid; place-items: center }
.round:hover { background: var(--lilac-2) }
.shelf { --fade: 28px; max-width: 1176px; margin: 18px auto -16px; padding: 24px 28px 44px; scroll-padding-inline: 28px; -webkit-mask-image: var(--edge-fade); mask-image: var(--edge-fade); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--lilac) transparent }
.shelf-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; width: max-content }
.shelf li { flex: 0 0 196px; scroll-snap-align: start; display: grid; gap: 10px; justify-items: center }
.shelf img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow) }
.shelf span { font: 600 1rem/1.2 var(--serif); color: var(--plum) }
.shelf:focus-visible { outline-offset: 2px }
@media (max-width: 760px) {
  .shelf-btns { display: none }
  .shelf { --fade: 14px; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut-r)); padding-left: var(--gut); padding-right: var(--gut-r); scroll-padding-inline: var(--gut) }
  .shelf li { flex-basis: 168px }
}

/* privacy: one note card */
.priv-card { max-width: 980px; margin: 0 auto; background: var(--card); border-radius: 32px; box-shadow: var(--shadow); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 48px); align-items: center }
.priv-art { width: 100%; max-width: 300px; margin: 0 auto }
.priv-copy .sec-title { text-align: left }
.priv-copy ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px }
.priv-copy li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--ink) }
.priv-copy li .ms { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lilac-2); color: var(--mauve); font-size: 21px }
.priv-copy li > span:last-child { padding-top: 8px }
.text-link { display: inline-block; margin-top: 22px; font-weight: 800; color: var(--mauve); text-underline-offset: 4px }
@media (max-width: 760px) {
  .priv-card { grid-template-columns: minmax(0, 1fr) }
  .priv-art { max-width: 200px }
}

/* final */
.final { text-align: center; display: grid; justify-items: center; gap: 14px; padding-bottom: 24px }
.final-art { position: relative; width: min(360px, 80vw); height: 210px; margin-bottom: 8px }
.final-art img { position: absolute; bottom: 0 }
.fa-rhea { left: 40%; height: 200px; width: auto }
.fa-mew { left: 6%; height: 120px; width: auto }
.fa-luna { right: 2%; bottom: 96px !important; height: 104px; width: auto; animation: float 6s ease-in-out infinite }
.final h2 { font-size: clamp(2rem, 4vw, 2.8rem) }
.final > p { color: var(--ink-2); max-width: 28em }
.final .btn { margin-top: 10px }
.howto { width: min(100%, 620px); text-align: left; background: var(--card); border-radius: 20px; padding: 4px 18px; margin-top: 18px; box-shadow: 0 4px 16px rgba(90, 66, 116, .08) }
.howto summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; padding: 14px 0; font-weight: 800; color: var(--plum) }
.howto summary::-webkit-details-marker { display: none }
.howto summary .ms { color: var(--mauve) }
.howto summary .chev { margin-left: auto; transition: transform .2s ease }
.howto[open] summary .chev { transform: rotate(180deg) }
.howto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 16px }
.howto ol { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); font-size: .95rem }
@media (max-width: 520px) { .howto-grid { grid-template-columns: minmax(0, 1fr) } }

/* footer */
.foot { padding: 56px var(--gut-r) calc(36px + env(safe-area-inset-bottom, 0px)) var(--gut) }
.foot-in { max-width: 1120px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--lilac-2) 18%, var(--lilac-2) 82%, transparent) top / 100% 1.5px no-repeat; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px }
.foot-in p { color: var(--ink-2); font-size: .92rem }
.foot-in nav { display: flex; gap: 20px; margin-left: auto }
.foot-in nav a { color: var(--ink-2); font-weight: 700; font-size: .92rem; text-decoration: none }
.foot-in nav a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 4px }
.foot-in small { width: 100%; color: var(--ink-2); font-size: .85rem }
@media (max-width: 640px) { .foot-in { flex-direction: column; text-align: center } .foot-in nav { margin-left: 0 } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
  .sparkles i { opacity: .7; transform: none }
}

/* a soft contact shadow under the cat and the corgi (31 Oct: iPhone Safari drew their drop-shadow filter as a pale box) */
.art-world .pshadow{position:absolute;height:5%;border-radius:50%;background:radial-gradient(closest-side,rgba(90,66,116,.22),rgba(90,66,116,0));pointer-events:none}
.art-world .ps2{left:9%;width:19%;bottom:-1.5%}.art-world .ps3{right:11%;width:19%;bottom:.5%}
