/* Kitten Whirl website. Colours, font and shapes follow the game. */

@font-face { font-family: 'Fredoka'; src: url('../fonts/Fredoka_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../fonts/Fredoka_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../fonts/Fredoka_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #5B3A6B;
  --ink-soft: #6F5480;
  --pink: #FF7AB6;
  --pink-deep: #F0509A;
  --purple: #9B7BFF;
  --purple-deep: #7A56F0;
  --sky: #6EC8FF;
  --gold: #FFC83D;
  --mint: #5ED6A0;
  --night: #2E1D45;
  --night-2: #43296A;
  --card: rgba(255, 255, 255, 0.88);
  --line: #F0E2FA;
  --shadow: 0 14px 40px rgba(122, 86, 240, 0.16);
  --radius: 28px;
  --wrap: 1120px;
  --button: linear-gradient(135deg, #F0509A, #8D5BF5);
  --button-cool: linear-gradient(135deg, #3FA9F5, #7A56F0);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, #FFE0F0 0%, #EADCFF 45%, #D4EEFF 100%);
  background-color: #FFE0F0;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); text-underline-offset: 3px; }
a:hover { color: var(--pink-deep); }
:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); color: var(--pink-deep); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--purple-deep); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.95rem; color: var(--purple-deep);
  background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px;
}

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 240, 248, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: #fff; color: var(--pink-deep); }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff;
  background: var(--card); color: var(--purple-deep); font: inherit; font-size: 22px; font-weight: 700; cursor: pointer;
}
@media (max-width: 760px) {
  .brand img { height: 30px; }
  .js .menu-toggle { display: block; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #FFF4FA; border-bottom: 2px solid #fff; padding: 10px 20px 18px; box-shadow: var(--shadow);
  }
  .js .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
}

/* ---------- Buttons and pills ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none;
  background: var(--button); border: 3px solid #fff; border-radius: 999px; padding: 12px 28px;
  box-shadow: 0 8px 22px rgba(240, 80, 154, 0.3); cursor: pointer; transition: transform 0.15s ease;
  text-shadow: 0 1px 2px rgba(60, 20, 80, 0.25);
}
.button:hover { color: #fff; transform: translateY(-2px); }
.button.cool { background: var(--button-cool); box-shadow: 0 8px 22px rgba(63, 169, 245, 0.3); }
.button.small { font-size: 0.95rem; padding: 8px 18px; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.store {
  display: flex; align-items: center; gap: 12px; min-width: 220px;
  background: var(--night); color: #fff; border: 3px solid #fff; border-radius: 18px; padding: 10px 18px;
  box-shadow: 0 10px 24px rgba(46, 29, 69, 0.25);
}
.store svg { flex: none; width: 30px; height: 30px; }
.store small { display: block; font-size: 0.8rem; font-weight: 600; color: #F8C8E6; letter-spacing: 0.04em; text-transform: uppercase; }
.store strong { display: block; font-size: 1.2rem; line-height: 1.1; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li {
  background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; position: relative; }
@media (max-width: 600px) { section { padding: 48px 0; } .section-head { margin-bottom: 28px; } }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }

.card {
  background: var(--card); border: 4px solid #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}

/* Hero */
.hero { padding: 56px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-mark { width: 150px; margin-bottom: 10px; animation: bob 3.2s ease-in-out infinite; }
.hero h1 span { color: var(--purple-deep); display: block; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 560px; }
.hero-phones .phone:first-child { transform: rotate(-6deg) translate(30px, 30px); z-index: 1; }
.hero-phones .phone:last-child { transform: rotate(5deg) translate(-30px, 0); z-index: 2; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-mark { margin-left: auto; margin-right: auto; }
  .stores, .pills { justify-content: center; }
  .hero-phones { min-height: 0; }
}
@media (max-width: 520px) {
  .hero-phones .phone { width: 170px; }
  .hero-phones .phone:first-child { transform: rotate(-6deg) translate(18px, 22px); }
  .hero-phones .phone:last-child { transform: rotate(5deg) translate(-18px, 0); }
  .store { min-width: 0; flex: 1 1 200px; }
}

.phone {
  width: 250px; flex: none; aspect-ratio: 1170 / 2532; border-radius: 38px; overflow: hidden;
  border: 9px solid var(--night); background: var(--night);
  box-shadow: 0 24px 50px rgba(46, 29, 69, 0.28), 0 0 0 3px #fff;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Floating sparkles in the background */
.sparkle { position: absolute; pointer-events: none; color: #fff; opacity: 0.9; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: -10px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--button); color: #fff; font-weight: 700; display: grid; place-items: center; border: 3px solid #fff;
}
.step .icon { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature .icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem;
  border: 3px solid #fff; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(122, 86, 240, 0.15);
}
.feature p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Treats */
.treats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 0; list-style: none; margin: 0; }
.treat { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 22px; }
.treat .emoji {
  flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; border: 3px solid #fff;
}
.treat h3 { font-size: 1.05rem; margin: 0 0 2px; display: flex; justify-content: space-between; gap: 8px; }
.treat .cost { color: #B87400; font-size: 0.9rem; white-space: nowrap; }
.treat p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; line-height: 1.4; }

/* Screenshot strip */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 26px;
  margin: 0 auto; max-width: var(--wrap); list-style: none;
}
.gallery li { scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 220px; }
@media (min-width: 1100px) { .gallery { justify-content: center; } .gallery .phone { width: 160px; } }
.gallery span { display: block; margin-top: 12px; font-weight: 600; color: var(--ink-soft); }

/* Promise banner */
.promise {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #FFF6FB, #F4EEFF);
}
.promise .big { font-size: 3rem; }
.promise h2 { margin-bottom: 0.2em; }
.promise p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; text-align: center; } }

/* Studio band */
.studio { background: radial-gradient(circle at 20% 20%, var(--night-2), var(--night) 70%); color: #F4EAFF; overflow: hidden; }
.studio .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.studio h2 { color: #fff; }
.studio p { color: #E2D3F5; }
.studio a { color: #FFB8DD; }
.studio img { width: 100%; max-width: 300px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
@media (max-width: 760px) { .studio .wrap { grid-template-columns: 1fr; text-align: center; } .studio img { max-width: 220px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #D9C8EE; padding: 40px 0 34px; border-top: 3px solid rgba(255, 255, 255, 0.08); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; }
.footer-brand strong { color: #fff; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #FFB8DD; text-decoration: underline; }
.copyright { width: 100%; font-size: 0.9rem; color: #B9A5D3; margin: 0; }
@media (max-width: 600px) { .site-footer .wrap { flex-direction: column; text-align: center; } .footer-links { justify-content: center; } }

/* ---------- Document pages (privacy, terms, press, support) ---------- */
.page-head { padding: 56px 0 24px; text-align: center; }
.page-head p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }
.doc { max-width: 820px; margin: 0 auto 72px; }
.doc h2 { font-size: 1.55rem; margin-top: 1.6em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.2em; color: var(--ink); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.updated { font-weight: 600; color: var(--ink-soft); }
.callout {
  background: linear-gradient(135deg, #FFF0F8, #F1EBFF); border: 3px solid #fff; border-radius: 20px;
  padding: 18px 22px; margin: 0 0 1.4em;
}
.callout p:last-child { margin: 0; }

/* Press kit */
.press-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; max-width: var(--wrap); margin: 0 auto 30px; }
.facts dl { margin: 0; }
.facts dt { font-weight: 700; color: var(--purple-deep); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 0; list-style: none; margin: 0; }
.asset { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.asset .preview { border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 16px; height: 170px; background: #fff; border: 2px solid var(--line); overflow: hidden; }
.asset .preview.dark { background: var(--night); border-color: var(--night); }
.asset .preview img { max-width: 100%; max-height: 134px; width: auto; height: auto; object-fit: contain; }
.asset strong { font-size: 1rem; }
.asset .links { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.95rem; }
.asset .links a { font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; padding: 0; list-style: none; margin: 0; }
.shots a { display: block; text-decoration: none; text-align: center; font-weight: 600; font-size: 0.95rem; }
.shots .phone { width: 100%; border-width: 6px; border-radius: 26px; margin-bottom: 8px; }

/* Support */
.support-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; max-width: var(--wrap); margin: 0 auto 72px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
label .optional { font-weight: 500; color: var(--ink-soft); font-size: 0.9rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(155, 123, 255, 0.2); }
textarea { min-height: 150px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); }
details { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 1rem; }
