/* Mahalle Patileri — light theme only (no dark mode on purpose) */
:root {
  color-scheme: light;
  --bg: #fff8ef;
  --bg2: #fff1e2;
  --card: #ffffff;
  --ink: #2e1f17;
  --ink2: #6f5446;
  --line: #f1dfca;
  --orange: #ff7a3a;
  --orange-d: #e2561a;
  --teal: #2a9d8f;
  --pink: #ffd9cf;
  --yellow: #ffd166;
  --sky: #d7ecff;
  --radius: 26px;
  --shadow-1: 0 2px 6px rgba(74, 47, 34, .08);
  --shadow-2: 0 10px 30px rgba(74, 47, 34, .12);
  --shadow-3: 0 30px 70px rgba(74, 47, 34, .22);
  --fs-sm: clamp(.9rem, .85rem + .2vw, 1rem);
  --fs-base: clamp(1rem, .95rem + .3vw, 1.15rem);
  --fs-lg: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  --fs-xl: clamp(1.8rem, 1.3rem + 2vw, 2.9rem);
  --fs-2xl: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; letter-spacing: -.01em; }
a { color: var(--orange-d); }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(255, 248, 239, .82); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 14px; background: var(--pink); box-shadow: var(--shadow-1); }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 8px 14px; border-radius: 99px; font-weight: 800; font-size: .95rem; color: var(--ink2); text-decoration: none; transition: background .2s, color .2s; }
.top nav a:hover { background: #fff; color: var(--orange-d); }

/* ---------- buttons ---------- */
.btn { --b: var(--orange); display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 18px; border: 0; background: var(--b); color: #fff; font: 800 1.02rem 'Nunito', sans-serif; text-decoration: none; box-shadow: 0 6px 0 var(--orange-d), var(--shadow-2); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; will-change: transform; }
.btn:hover { box-shadow: 0 8px 0 var(--orange-d), var(--shadow-3); }
.btn:active { transform: translateY(4px) !important; box-shadow: 0 2px 0 var(--orange-d); }
.btn small { display: block; font-size: .72rem; font-weight: 800; opacity: .85; line-height: 1; }
.btn .t { line-height: 1.15; text-align: left; }
.btn.ghost { --b: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--line), var(--shadow-1); }
.btn.soon { cursor: default; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px 0 60px; overflow: hidden; isolation: isolate; }
.hero .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .7; }
.hero .b1 { width: 520px; height: 520px; background: #ffd6b8; top: -140px; right: -120px; }
.hero .b2 { width: 420px; height: 420px; background: #d7ecff; bottom: -160px; left: -140px; }
.hero .b3 { width: 260px; height: 260px; background: #fff0b8; top: 40%; left: 42%; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-1); font-weight: 800; font-size: .9rem; color: var(--teal); }
.hero h1 { font-size: var(--fs-2xl); line-height: .98; margin: 18px 0 18px; font-weight: 600; }
.hero h1 .w { display: inline-block; }
.hero h1 .accent { color: var(--orange); position: relative; }
.hero h1 .accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--yellow); border-radius: 99px; z-index: -1; transform-origin: left; }
.hero p.lead { font-size: var(--fs-lg); color: var(--ink2); max-width: 30ch; margin: 0 0 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .avatars { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-weight: 800; color: var(--ink2); font-size: .95rem; }
.hero .avatars { flex-wrap: wrap; }
.hero .avatars .row { display: flex; flex-shrink: 0; }
.hero .avatars img { flex-shrink: 0; }
.hero .avatars img { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid var(--bg); margin-left: -12px; box-shadow: var(--shadow-1); }
.hero .avatars img:first-child { margin-left: 0; }

.phones { position: relative; height: min(640px, 72vh); perspective: 1200px; }
.phone { position: absolute; width: min(270px, 34vw); aspect-ratio: 9 / 16; border-radius: 36px; padding: 9px; background: #2a1d16; box-shadow: var(--shadow-3); overflow: hidden; will-change: transform; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.phone.p1 { left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.phone.p2 { left: 4%; top: 52%; transform: translate(0, -50%) rotate(-9deg) scale(.86); z-index: 2; }
.phone.p3 { right: 4%; top: 48%; transform: translate(0, -50%) rotate(9deg) scale(.86); z-index: 1; }
.sticker { position: absolute; z-index: 5; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-2); font-weight: 900; font-size: .95rem; white-space: nowrap; }
.sticker.s1 { left: 0; top: 14%; }
.sticker.s2 { right: 0; bottom: 14%; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-weight: 800; font-size: .85rem; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint i { width: 22px; height: 34px; border: 2.5px solid var(--ink2); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--ink2); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } }

/* ---------- marquee of cats ---------- */
.marquee { padding: 26px 0; background: #fff; border-block: 1px solid var(--line); overflow: hidden; }
.marquee .track { display: flex; gap: 22px; width: max-content; animation: marquee 48s linear infinite; }
.marquee figure { margin: 0; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 99px; background: var(--bg); font-weight: 800; color: var(--ink2); white-space: nowrap; }
.marquee img { width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(70px, 9vw, 130px) 0; }
.sec-head { max-width: 680px; margin-bottom: 46px; }
.sec-head .eyebrow { margin-bottom: 12px; }
h2 { font-size: var(--fs-xl); line-height: 1.08; margin: 0 0 12px; font-weight: 600; }
.sec-head p { color: var(--ink2); font-size: var(--fs-lg); margin: 0; }

/* how to play: alternating story rows */
.steps { display: grid; gap: clamp(60px, 8vw, 110px); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.step:nth-child(even) .media { order: 2; }
.step .media { position: relative; }
.step .media .frame { position: relative; width: min(360px, 90%); margin-inline: auto; aspect-ratio: 9 / 13; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-3); background: var(--bg2); }
.step .media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.step .media .dot { position: absolute; width: 120px; height: 120px; border-radius: 50%; z-index: -1; }
.step .num { font-family: 'Fredoka', sans-serif; font-size: 1rem; font-weight: 600; color: var(--orange-d); background: #fff; display: inline-flex; padding: 6px 14px; border-radius: 99px; box-shadow: var(--shadow-1); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; font-weight: 600; }
.step p { color: var(--ink2); font-size: var(--fs-lg); margin: 0 0 18px; }
.step ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.step li::before { content: '🐾'; font-size: .95rem; transform: translateY(2px); }

/* horizontal gallery (pinned on desktop, swipeable on phones) */
.gallery { background: linear-gradient(var(--bg) 0%, var(--bg2) 100%); overflow: hidden; }
.gallery .track { display: flex; gap: 28px; padding: 10px 0 30px; will-change: transform; }
.gallery figure { flex: 0 0 auto; width: min(300px, 74vw); margin: 0; background: #fff; border-radius: 30px; padding: 10px; box-shadow: var(--shadow-2); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.gallery figure:hover { transform: translateY(-8px) rotate(-1deg); }
.gallery figure img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; }
.gallery figcaption { padding: 12px 8px 4px; font-weight: 900; }
.gallery figcaption small { display: block; font-weight: 700; color: var(--ink2); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-1); text-align: center; transition: transform .25s, box-shadow .25s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.stat b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--orange); }
.stat span { font-weight: 800; color: var(--ink2); }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.feat { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.feat .e { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--bg2); }
.feat h3 { margin: 14px 0 6px; font-size: 1.25rem; font-weight: 600; }
.feat p { margin: 0; color: var(--ink2); font-size: var(--fs-sm); }

/* closing call */
.cta-band { position: relative; border-radius: 40px; padding: clamp(36px, 6vw, 70px); background: linear-gradient(135deg, #ffb37f 0%, #ff7a3a 55%, #f05d2a 100%); color: #fff; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; box-shadow: var(--shadow-3); }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0 0 22px; font-size: var(--fs-lg); opacity: .95; }
.cta-band .btn { --b: #fff; color: var(--orange-d); box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }
.cta-band .btn.ghost { --b: rgba(255, 255, 255, .18); color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .12); }
.cta-band .cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; justify-items: center; }
.cta-band .cats img { width: min(130px, 30vw); border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.contact { margin-top: 18px; font-weight: 800; }
.contact a { color: #fff; }

/* paw trail (desktop pointers only) */
.paw { position: fixed; z-index: 60; pointer-events: none; font-size: 16px; opacity: .55; transform: translate(-50%, -50%); animation: paw 1.1s ease-out forwards; }
@keyframes paw { to { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }

/* ---------- documents (privacy, terms) ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 120px 20px 70px; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.05; margin: 0 0 8px; font-weight: 600; }
.doc .date { color: var(--ink2); margin: 0 0 26px; font-weight: 800; }
.doc h2 { font-size: 1.45rem; margin: 38px 0 8px; }
.doc h3 { font-size: 1.15rem; margin: 22px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 5px 0; }
.doc .box { background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow-1); border-left: 6px solid var(--orange); margin: 18px 0; }
.lang { display: inline-flex; gap: 8px; margin: 0 0 22px; }
.lang a { padding: 7px 16px; border-radius: 99px; background: #fff; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-1); }
hr.sep { border: 0; border-top: 2px dashed var(--line); margin: 56px 0; }

/* ---------- footer ---------- */
footer { padding: 34px 0 46px; color: var(--ink2); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
footer a { color: var(--ink2); font-weight: 800; text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--orange-d); }

/* ---------- reveal defaults (JS animates them in; without JS they simply show) ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .step, .cta-band { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero p.lead { max-width: none; }
  .phones { height: 520px; margin-top: 10px; }
  .phone { width: 230px; }
  .step:nth-child(even) .media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery .track { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: 20px; scrollbar-width: none; }
  .gallery .track::-webkit-scrollbar { display: none; }
  .gallery figure { scroll-snap-align: center; }
  .scroll-hint { display: none; }
  .cta-band .cats { grid-template-columns: repeat(4, 1fr); }
  .cta-band .cats img { width: 70px; }
}
@media (max-width: 560px) {
  .brand { font-size: 1.05rem; }
  .brand img { width: 36px; height: 36px; }
  .top nav a.hide-sm { display: none; }
  .top nav a { padding: 8px 10px; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 200px; }
  .phones { height: 440px; }
  .sticker { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
