/* CatWOW marketing site: playful "raspberry" brand */
:root {
  --cream: #FFF7EE;
  --cream-deep: #FFE6DA;
  --peach: #FFDDD3;
  --ink: #33283A;
  --ink-soft: #6F5E78;
  --tangerine: #F2588A;
  --tangerine-dk: #D63C70;
  --tangerine-tint: #FDE7EF;
  --cta: #C2185B;
  --cta-dk: #A0154A;
  --grass: #22B07D;
  --grass-dk: #149267;
  --sky: #3F9FD6;
  --sun: #FFC247;
  --pink: #B08CE8;
  --pink-tint: #EEE6FB;
  --card: #ffffff;
  --hair: #EFDDDD;
  --shadow: rgba(51, 40, 58, 0.16);
  --radius: 22px;
  --radius-lg: 28px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -5%, #FFE6DA 0%, transparent 60%),
    radial-gradient(1000px 700px at 110% 12%, #EEE6FB 0%, transparent 55%),
    linear-gradient(170deg, #FFF7EE 0%, #FFE6DA 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}
[dir="rtl"] body { text-align: right; }

h1, h2, h3, .display { font-family: 'Baloo 2', 'Nunito', sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: -0.3px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* floating decorations */
.deco { position: fixed; pointer-events: none; opacity: 0.12; font-size: 40px; z-index: 0; animation: bob 7s ease-in-out infinite; }
.deco:nth-child(1){ top: 12%; left: 5%; animation-delay: 0s; }
.deco:nth-child(2){ top: 26%; right: 6%; font-size: 32px; animation-delay: 1.4s; }
.deco:nth-child(3){ bottom: 18%; left: 8%; font-size: 48px; animation-delay: 2.2s; }
.deco:nth-child(4){ bottom: 30%; right: 7%; font-size: 28px; animation-delay: .7s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(8deg); } }

/* header */
header.site { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(255, 247, 238, 0.8); border-bottom: 1px solid var(--hair); }
header.site .bar { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 9px; font-family: 'Baloo 2'; font-weight: 800; font-size: 22px; text-decoration: none; }
.logo .mark { width: 34px; height: 34px; border-radius: 50%; background: var(--tangerine); display: grid; place-items: center; font-size: 19px; }
.logo b { color: var(--ink); } .logo b em { color: var(--tangerine-dk); font-style: normal; }
header .nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
header .nav a { font-weight: 800; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
header .nav a:hover { color: var(--ink); }
@media (max-width: 760px) { header .nav a.navlink { display: none; } }

/* language switcher */
.lang { position: relative; }
.lang button { font-family: 'Nunito'; font-weight: 800; font-size: 14px; color: var(--ink); background: #fff; border: 1.5px solid var(--hair); border-radius: 100px; padding: 7px 13px; cursor: pointer; }
.lang ul { position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--hair); border-radius: 16px; box-shadow: 0 12px 30px -10px var(--shadow); padding: 6px; margin: 0; list-style: none; max-height: 320px; overflow: auto; display: none; min-width: 180px; }
.lang ul.open { display: block; }
.lang li { padding: 9px 12px; border-radius: 11px; cursor: pointer; font-weight: 700; font-size: 14px; white-space: nowrap; }
.lang li:hover, .lang li[aria-selected="true"] { background: var(--peach); }
.lang li a { display: flex; align-items: center; color: inherit; text-decoration: none; }
.lang button { display: inline-flex; align-items: center; gap: 7px; }
.flag { font-size: 16px; line-height: 1; }
.lang li a .flag { margin-right: 10px; }

/* buttons & store badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Baloo 2'; font-weight: 800; font-size: 17px; padding: 14px 22px; border-radius: 16px; text-decoration: none; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--tangerine), var(--tangerine-dk)); color: #fff; box-shadow: 0 12px 26px -8px rgba(242, 88, 138, 0.6); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 15px; transition: transform .15s; box-shadow: 0 10px 24px -10px var(--shadow); }
.store:hover { transform: translateY(-2px); }
.store .ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; }
.store .ic svg { width: 100%; height: 100%; }
.store small { display: block; font-size: 10px; opacity: .85; font-weight: 700; letter-spacing: .3px; }
.store .big { font-family: 'Baloo 2'; font-weight: 700; font-size: 17px; line-height: 1.1; }

/* hero */
.hero { position: relative; z-index: 1; padding: 60px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; text-align: center; } }
.kicker { display: inline-block; background: var(--peach); color: var(--tangerine-dk); font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 100px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); margin: 16px 0 12px; }
.hero h1 .wow { color: var(--tangerine-dk); }
.hero p.lead { font-size: 18px; color: var(--ink-soft); font-weight: 600; max-width: 520px; }
@media (max-width: 860px) { .hero p.lead { margin: 0 auto; } }
.hero .ctas { margin-top: 26px; }
@media (max-width: 860px) { .hero .ctas .stores { justify-content: center; } }
.cta-note { font-size: 13px; color: var(--ink-soft); font-weight: 700; margin-top: 12px; }
.hero-art { display: grid; place-items: center; }
.phone { width: 260px; aspect-ratio: 9/19; background: #241A2A; border-radius: 42px; padding: 10px; box-shadow: 0 30px 60px -18px var(--shadow); }
.phone .screen { width: 100%; height: 100%; border-radius: 33px; background: linear-gradient(170deg, #FFF7EE, #FFE6DA); display: flex; flex-direction: column; align-items: center; padding: 26px 16px; }
.phone .cat { font-size: 92px; animation: wag 2.4s ease-in-out infinite; }
@keyframes wag { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-4px); } }
.phone .ptitle { font-family: 'Baloo 2'; font-weight: 800; font-size: 20px; margin-top: 8px; }
.phone .pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; width: 100%; }
.phone .pgrid img { width: 100%; border-radius: 16px; }

/* sections */
section { position: relative; z-index: 1; padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--ink-soft); font-weight: 600; font-size: 17px; margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 14px 30px -16px var(--shadow); display: flex; gap: 16px; align-items: flex-start; }
.feature img { width: 64px; height: 64px; flex: none; }
.feature .fic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; font-size: 44px; line-height: 1; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--ink-soft); font-weight: 600; font-size: 15px; margin-top: 5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: var(--radius-lg); padding: 26px 22px; text-align: center; box-shadow: 0 14px 30px -16px var(--shadow); }
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--peach); color: var(--tangerine-dk); font-family: 'Baloo 2'; font-weight: 800; font-size: 20px; display: grid; place-items: center; margin: 0 auto 12px; }
.step h3 { font-size: 18px; } .step p { color: var(--ink-soft); font-weight: 600; font-size: 15px; margin-top: 6px; }

.note-card { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: 30px; text-align: center; max-width: 760px; margin: 0 auto; }
.note-card h2 { color: var(--cream); font-size: 26px; }
.note-card p { color: var(--cream); opacity: .85; font-weight: 600; margin-top: 10px; }

.faq { max-width: 740px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; box-shadow: 0 8px 20px -14px var(--shadow); }
.faq summary { font-family: 'Baloo 2'; font-weight: 700; font-size: 17px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--tangerine); font-size: 22px; }
[dir="rtl"] .faq summary::after { float: left; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--ink-soft); font-weight: 600; padding: 0 0 16px; }

.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-final p { color: var(--ink-soft); font-weight: 600; font-size: 17px; margin: 10px 0 24px; }
.cta-final .stores { justify-content: center; }

/* footer */
footer.site { position: relative; z-index: 1; background: var(--cream-deep); border-top: 1px solid var(--hair); padding: 40px 0 30px; margin-top: 30px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .links a { font-weight: 800; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
footer .links a:hover { color: var(--ink); }
footer .copy { color: var(--ink-soft); font-weight: 600; font-size: 13px; margin-top: 20px; }

/* legal / doc pages */
.doc { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 50px 22px 60px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc .updated { color: var(--ink-soft); font-weight: 700; font-size: 14px; margin-bottom: 30px; }
.doc h2 { font-size: 22px; margin: 28px 0 10px; }
.doc h3 { font-size: 17px; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--ink); font-weight: 500; font-size: 16px; line-height: 1.7; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc a { color: var(--tangerine-dk); font-weight: 700; }
.doc .back { display: inline-block; margin-bottom: 24px; font-weight: 800; color: var(--ink-soft); text-decoration: none; }
.doc .box { background: var(--card); border-radius: 16px; padding: 18px 22px; margin: 16px 0; box-shadow: 0 8px 20px -14px var(--shadow); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.doc th { font-weight: 800; color: var(--ink-soft); font-size: 13px; }
[dir="rtl"] .doc th, [dir="rtl"] .doc td { text-align: right; }

/* app install banner (js/app-banner.js) — shown outside iOS Safari, where
   Apple's native Smart App Banner takes the same slot.
   Sits in normal flow as the first child of <body> and scrolls away with the
   page, exactly like Apple's banner. Deliberately not position:fixed: the site
   header is position:sticky, and a fixed bar would either cover the stuck
   header or need a body offset that the sticky top value then doubles. */
.dw-banner { position: relative; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--card); border-bottom: 1px solid var(--hair); box-shadow: 0 6px 20px -12px var(--shadow); opacity: 0; transition: opacity .25s ease-out; }
.dw-banner--in { opacity: 1; }
.dw-banner__close { flex: none; width: 26px; height: 26px; padding: 0; border: 0; background: none; color: var(--ink-soft); font-size: 23px; line-height: 1; cursor: pointer; }
.dw-banner__icon { flex: none; width: 42px; height: 42px; border-radius: 10px; }
.dw-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dw-banner__text strong { font-family: 'Baloo 2'; font-weight: 700; font-size: 15px; color: var(--ink); }
.dw-banner__text span { font-size: 12px; font-weight: 600; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-banner__cta { flex: none; padding: 8px 18px; border-radius: 999px; background: var(--cta); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; }
/* no RTL override needed: dir="rtl" already flips the flex main axis, so the
   close button lands on the right and the CTA on the left */

/* /get — breakout page for in-app browsers */
.getpage { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 40px 24px calc(40px + env(safe-area-inset-bottom, 0px)); }
.getpage img.app { width: 92px; height: 92px; border-radius: 21px; box-shadow: 0 14px 30px -16px var(--shadow); }
.getpage h1 { font-size: 26px; }
.getpage p { max-width: 32ch; color: var(--ink-soft); font-weight: 600; font-size: 15px; line-height: 1.55; }
.getpage .go { display: inline-block; padding: 14px 30px; border: 0; border-radius: 999px; background: var(--cta); color: #fff; font: inherit; font-family: 'Baloo 2'; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; box-shadow: 0 12px 26px -12px var(--shadow); }
.getpage .go--ghost { background: none; color: var(--ink-soft); border: 2px solid var(--hair); font-size: 16px; padding: 11px 24px; box-shadow: none; }
.getpage .hint { font-size: 14px; }
.getpage .spin { width: 26px; height: 26px; border: 3px solid var(--hair); border-top-color: var(--tangerine); border-radius: 50%; animation: dwspin .8s linear infinite; }
@keyframes dwspin { to { transform: rotate(360deg); } }
