/* Purrse website. Tokens mirror purrse/src/theme.ts so the site and the app look like one product. */
:root {
  --cream: #F8EEDC; --cream2: #FFF8EE; --sand: #EADCC6;
  --cocoa: #4A2E2A; --cocoa2: #7A5A52; --muted: #A08A80; --line: #F3EADD;
  --peach: #FAD9B5; --mint: #CDEFD9; --coral: #F7B8A6; --sky: #BDE7F2;
  --lav: #E3D5F5; --pink: #F9CFE0; --lemon: #FBEFB0; --gray: #ECE3D6;
  --gold: #F7CD5A; --green: #3E9A6A;
  --shadow: 0 6px 18px rgba(74, 46, 42, .10);
  --shadow-lg: 0 30px 60px rgba(74, 46, 42, .22);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 24px;
  --wrap: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--cocoa);
  font: 600 17px/1.6 Nunito, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, h4, .display { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--cocoa); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cocoa); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 20px; border: 0;
  font: 700 17px/1 Fredoka, Nunito, sans-serif; text-decoration: none; cursor: pointer;
  background: var(--cocoa); color: #fff; box-shadow: var(--shadow);
  transition: transform .2s var(--spring), box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(74, 46, 42, .22); }
.btn:active { transform: scale(.97); }
.btn.soft { background: #fff; color: var(--cocoa); }
.btn.sm { min-height: 44px; padding: 0 18px; border-radius: 16px; font-size: 15px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store { flex-direction: row; text-align: left; line-height: 1.1; }
.store small { display: block; font: 700 11.5px/1.2 Nunito, sans-serif; opacity: .75; letter-spacing: .02em; }
.store span { display: block; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: #fff; font-weight: 800; font-size: 13.5px; color: var(--cocoa2); box-shadow: 0 2px 8px rgba(74, 46, 42, .07);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- nav ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(248, 238, 220, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--sand); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 25px/1 Fredoka, sans-serif; }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 14px; text-decoration: none; font-weight: 700; color: var(--cocoa2); transition: background-color .2s, color .2s; }
.nav a:hover { background: #fff; color: var(--cocoa); }
@media (max-width: 960px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- decorative blobs (same as the app's screens) ---------- */
.blob { position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 56px 0 40px; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--peach) 62%); padding: 0 4px; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--cocoa2); max-width: 520px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--cocoa2); font-size: 14.5px; font-weight: 700; list-style: none; padding: 0; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; stroke: var(--green); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stage { position: relative; display: flex; justify-content: center; padding: 40px 0 20px; }
.stage .peek { position: absolute; z-index: 3; }
.stage .peek.a { width: 150px; top: -26px; right: calc(50% - 205px); }
.stage .peek.b { width: 120px; bottom: 6px; left: calc(50% - 230px); }
.stage .bubble {
  position: absolute; z-index: 4; top: 120px; left: calc(50% - 360px);
  background: #fff; border-radius: 20px 20px 20px 6px; padding: 12px 16px; box-shadow: var(--shadow);
  font: 700 15px/1.3 Fredoka, sans-serif; max-width: 190px;
}
.stage .bubble b { color: #E0645A; }
@media (max-width: 920px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin: 0 auto; }
  .ctas, .trust { justify-content: center; }
  .stage .bubble { display: none; }
}
@media (max-width: 520px) {
  .stage .peek.a { width: 112px; top: -4px; right: calc(50% - 170px); }
  .stage .peek.b { width: 92px; left: calc(50% - 176px); }
}

/* ---------- phone frame around real screenshots ---------- */
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 390 / 844;
  border-radius: 50px; padding: 10px; background: #221A18;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a2e2b; flex: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; background: var(--cream); }
.phone.sm { width: 250px; border-radius: 40px; padding: 8px; }
.phone.sm img { border-radius: 32px; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: 88px 0; }
.eyebrow { font: 800 13px/1 Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--cocoa2); }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 50px); margin: 12px 0 14px; }
.sec-head p { color: var(--cocoa2); font-size: 18.5px; }

/* family */
.family { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pal { border-radius: 28px; padding: 22px 18px 24px; text-align: center; transition: transform .25s var(--spring); }
.pal:hover { transform: translateY(-6px) rotate(-1deg); }
.pal .cat { width: 120px; height: auto; margin: 0 auto 10px; }
.pal.duo .cat { width: 176px; }
.pal h3 { font-size: 24px; }
.pal .role { display: inline-block; margin: 6px 0 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-weight: 800; font-size: 13px; }
.pal p { font-size: 15px; line-height: 1.5; color: var(--cocoa2); }
@media (max-width: 1040px) { .family { grid-template-columns: repeat(2, 1fr); } .pal.duo { grid-column: span 2; } }
@media (max-width: 520px) { .family { grid-template-columns: 1fr; } .pal.duo { grid-column: auto; } }

/* feature rows */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 36px 0; }
.feat .shot { display: flex; justify-content: center; position: relative; isolation: isolate; }
.feat .shot::before { content: ""; position: absolute; z-index: -1; width: 92%; aspect-ratio: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--tint, var(--peach)); }
.feat:nth-child(even) .shot { order: 2; }
.feat h3 { font-size: clamp(30px, 3.6vw, 42px); margin: 14px 0 16px; }
.feat .body > p { color: var(--cocoa2); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.ticks li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 9px; background: var(--tint, var(--peach)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A2E2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 2px 8px rgba(74, 46, 42, .07); }
.tag .cat { width: 30px; height: 30px; }
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feat:nth-child(even) .shot { order: 0; }
  .ticks { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* gallery: endless slow marquee. The track holds the screenshots twice, so sliding it by -50% loops seamlessly. */
.gallery { overflow: hidden; padding: 12px 0 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gallery .track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.gallery:hover .track, .gallery:focus-within .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.gallery figure { margin: 0; padding: 0 12px; text-align: center; }
.gallery figcaption { margin-top: 16px; font: 700 17px/1.2 Fredoka, sans-serif; }
.gallery figcaption small { display: block; font: 700 13.5px/1.4 Nunito, sans-serif; color: var(--cocoa2); margin-top: 4px; }
@media (max-width: 600px) { .gallery .track { animation-duration: 50s; } .gallery .phone.sm { width: 210px; } }
/* No motion: fall back to a normal sideways scroller with one copy. */
@media (prefers-reduced-motion: reduce) {
  .gallery { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 8px; }
  .gallery figure[aria-hidden] { display: none; }
}

/* privacy tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { background: var(--cream2); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--shadow); }
.tile .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.tile .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--cocoa); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 21px; margin-bottom: 8px; }
.tile p { font-size: 15.5px; color: var(--cocoa2); line-height: 1.55; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* compare table */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare { max-width: 900px; margin: 0 auto; background: var(--cream2); border-radius: 28px; box-shadow: var(--shadow); padding: 10px; overflow-x: auto; }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 700 16px/1.25 Fredoka, sans-serif; color: var(--cocoa2); }
.compare thead th:nth-child(2) { color: var(--cocoa); }
.compare tbody th { font-weight: 800; }
.compare td { color: var(--cocoa2); }
.compare td:nth-child(2) { background: var(--peach); color: var(--cocoa); font-weight: 800; }
.compare thead th:nth-child(2) { background: var(--peach); border-radius: 18px 18px 0 0; }
.compare tbody tr:last-child td:nth-child(2) { border-radius: 0 0 18px 18px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; background: #fff; border-radius: 28px; padding: 30px 26px; box-shadow: var(--shadow); border: 3px solid transparent; display: flex; flex-direction: column; }
.plan.best { border-color: var(--cocoa); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--gold); padding: 6px 14px; border-radius: 999px; font: 800 12px/1 Nunito, sans-serif; letter-spacing: .06em; }
.plan h3 { font-size: 22px; }
.plan .sub { color: var(--cocoa2); font-size: 15px; margin-top: 4px; }
.plan .price { font: 700 44px/1 Fredoka, sans-serif; margin: 22px 0 4px; }
.plan .price small { font: 700 16px/1 Nunito, sans-serif; color: var(--cocoa2); }
.plan .ticks { margin-top: 18px; font-size: 15.5px; }
.plan .ticks li::before { width: 22px; height: 22px; border-radius: 8px; background-size: 13px; }
.fine { text-align: center; color: var(--cocoa2); font-size: 14.5px; margin-top: 26px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 420px; gap: 26px; } }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--cream2); border-radius: 20px; box-shadow: 0 2px 8px rgba(74, 46, 42, .07); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font: 700 18.5px/1.35 Fredoka, sans-serif; position: relative; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 10px; background: var(--peach); display: grid; place-items: center; font: 700 20px/1 Fredoka, sans-serif; transition: transform .25s var(--spring); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--cocoa2); }

/* closing band */
.band { background: var(--cocoa); color: #fff; border-radius: 40px; padding: 60px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.band h2 { font-size: clamp(34px, 4.6vw, 52px); }
.band p { color: #EADCC6; font-size: 18px; margin-top: 14px; }
.band .btn.soft:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
.band .cats { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.band .cats .cat { width: 130px; margin: 0 -14px; }
.band .cats .cat:nth-child(2) { width: 170px; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; text-align: center; padding: 44px 22px; border-radius: 32px; } .band .ctas { justify-content: center; } .band .cats .cat { width: 96px; } .band .cats .cat:nth-child(2) { width: 124px; } }

/* footer */
footer { padding: 56px 0 40px; color: var(--cocoa2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { text-decoration: none; font-weight: 700; padding: 6px 0; }
footer nav a:hover { color: var(--cocoa); text-decoration: underline; }

/* ---------- legal pages ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 48px 20px 40px; }
.legal .head { text-align: center; margin-bottom: 36px; }
.legal .head .cat { width: 120px; margin: 0 auto 8px; }
.legal h1 { font-size: clamp(38px, 6vw, 56px); margin: 8px 0 10px; }
.legal .meta { color: var(--cocoa2); font-weight: 700; }
.legal .summary { background: var(--mint); border-radius: var(--r); padding: 24px 26px; margin-bottom: 26px; }
.legal .summary h2 { font-size: 22px; margin-bottom: 10px; }
.legal .summary ul { margin: 0; padding-left: 20px; }
.legal .summary li { margin: 6px 0; }
.legal article { background: var(--cream2); border-radius: 28px; padding: 36px clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.legal article h2 { font-size: 26px; margin: 36px 0 12px; }
.legal article h2:first-child { margin-top: 0; }
.legal article h3 { font-size: 19px; margin: 22px 0 8px; }
.legal article p, .legal article li { color: #5E403A; }
.legal article p + p { margin-top: 12px; }
.legal article ul { padding-left: 22px; margin: 10px 0; }
.legal article li { margin: 7px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font: 700 15px/1.3 Fredoka, sans-serif; background: var(--peach); }
.legal th:first-child { border-radius: 12px 0 0 12px; } .legal th:last-child { border-radius: 0 12px 12px 0; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.legal .toc a { text-decoration: none; background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(74, 46, 42, .07); }
.legal .toc a:hover { background: var(--peach); }
.table-wrap { overflow-x: auto; }
.legal td:first-child { font-weight: 800; color: var(--cocoa); width: 32%; }
[id] { scroll-margin-top: 88px; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .6s ease, transform .7s var(--spring); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- the cat family (SVG + keyframes from the app) ---------- */
.cat { overflow: visible; height: auto; }
.cat .whole { transform-box: fill-box; transform-origin: 50% 100%; }
.cat .bod { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
.cat .tail { transform-box: fill-box; transform-origin: 0% 100%; animation: sway 2.6s ease-in-out infinite; }
.cat .eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 4.2s infinite; }
@keyframes breathe { 50% { transform: scale(1.025, .975); } }
@keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.mood-happy .whole { animation: hop .9s var(--spring) infinite; }
.mood-happy .tail { animation-duration: .9s; }
/* Hopping everywhere is a lot on a long page: cats hop only while hovered, or when marked .hop. */
.calm .mood-happy .whole { animation: none; }
.calm:hover .mood-happy .whole, .hop.mood-happy .whole { animation: hop .9s var(--spring) infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1); } 35% { transform: translateY(-9px) scale(.97, 1.04); } 70% { transform: translateY(0) scale(1.04, .96); } }
.mood-shocked .whole { animation: shock 1.6s infinite; }
.mood-shocked .eyes, .mood-sleepy .eyes { animation: none; }
@keyframes shock { 0% { transform: translateY(0); } 8% { transform: translateY(-12px) scale(1.04); } 16% { transform: translateY(0); } 20%, 30%, 40% { transform: translateX(-2px); } 25%, 35% { transform: translateX(2px); } 45%, 100% { transform: none; } }
.mood-sleepy .bod { animation-duration: 4.5s; }
.mood-sleepy .tail { animation-duration: 5s; }
.cat .heart, .cat .zz, .cat .sweat, .cat .spark { transform-box: fill-box; transform-origin: 50% 50%; }
.cat .heart { animation: floatUp 1.8s ease-out infinite; }
.cat .heart.b { animation-delay: .9s; }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(6px) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px) scale(1.1); } }
.cat .zz { animation: zz 3s ease-in-out infinite; opacity: 0; }
.cat .zz.b { animation-delay: 1s; } .cat .zz.c { animation-delay: 2s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(12px, -20px) scale(1.15); } }
.cat .sweat { animation: drip 1.6s ease-in infinite; }
@keyframes drip { 0% { opacity: 0; transform: translateY(-4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.cat .spark { animation: spark 1.6s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }
.cat .coinhop { transform-box: fill-box; transform-origin: 50% 50%; animation: duoCoin 2.2s ease-in-out infinite; }
@keyframes duoCoin { 0%, 100% { transform: translate(-14px, 0); } 50% { transform: translate(14px, -16px); } }
.float { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

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