/* Shared look for every page, taken from the app's theme (warm paper, ink, pastels, Fredoka). */
@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; }

*, *::before, *::after { box-sizing: border-box; }
:root {
  color-scheme: light;
  --paper: #FFF4EC;
  --card: #FFFFFF;
  --ink: #2A1A22;
  --muted: #65505B;
  --line: #E9DAD2;
  --accent: #C2286A;
  --lilac: #DCD1FF;
  --video-bg: #FCF3E9;
  --display: 'Fredoka', ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 24px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 1px 3px rgba(42, 26, 34, .18); }
.site-nav { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 600; font-size: 16px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 12px; text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--accent); }
.site-nav a.nav-cta { margin-left: 8px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.site-nav a.nav-cta:hover { background: #46303B; color: var(--paper); }

/* Home */
/* Mascot loops are rendered on the app's paper colour; a soft radial mask hides the square edge. */
.loop { aspect-ratio: 1; }
.loop video { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }

.hero { width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(16px, 4vw, 48px) 24px clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; }
.hero h1 { margin: 0 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(46px, 7vw, 84px); line-height: .98; letter-spacing: -0.015em; text-wrap: balance; }
.hero p { margin: 0 0 32px; max-width: 30em; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-note { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted); }
/* Hero phones: real screenshots in a CSS frame. */
.phones { position: relative; width: min(100%, 460px); aspect-ratio: 460 / 620; justify-self: center; }
.phone { position: absolute; width: 54%; padding: 2.4%; border-radius: 15% / 7%; background: #1E161A; box-shadow: 0 0 0 1.5px #4A3C43 inset, 0 30px 60px -20px rgba(42, 26, 34, .45), 0 10px 22px -10px rgba(42, 26, 34, .3); }
.phone img { display: block; width: 100%; height: auto; border-radius: 12.5% / 5.8%; }
.phone-front { left: 4%; top: 0; z-index: 2; transform: rotate(-4deg); }
.phone-back { right: 2%; top: 9%; transform: rotate(6deg); }

.section { width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 24px; }
.section-title { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.4vw, 52px); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.section-intro { margin: 0 0 36px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 12px 22px 26px; border-radius: 28px; background: var(--video-bg); border: 1px solid var(--line); border-top: 6px solid var(--tint, var(--lilac)); }
.feature .loop { width: 78%; margin: 0 auto 4px; }
.feature .loop video, .cats .loop video { transform: scale(1.3); }
.feature h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 24px; }
.feature p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 18px; }
.cats .loop { width: 100%; max-width: 190px; margin: 0 auto 2px; }

.promise { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; align-items: center; gap: clamp(16px, 4vw, 48px); }
.promise > div:last-child { padding: clamp(24px, 4vw, 40px); border-radius: 30px; background: var(--lilac); }
.promise-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; font-size: 17px; line-height: 1.55; }
.promise-list strong { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; }

.final { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: clamp(64px, 9vw, 104px); }
.final .loop { width: min(300px, 70vw); margin-bottom: 4px; }
.final .section-title { margin-bottom: 24px; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .phones { order: 2; width: min(100%, 380px); margin-top: 8px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .promise { grid-template-columns: 1fr; }
  .promise > .loop { width: min(240px, 60vw); justify-self: center; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: center; padding: 14px 18px 14px 10px; }
  .feature .loop { grid-row: span 2; width: 96px; margin: 0; }
  .feature h3 { align-self: end; font-size: 21px; margin-bottom: 2px; }
  .feature p { align-self: start; font-size: 15px; }
}

.page-loop { width: 150px; margin: -12px 0 4px -14px; }

/* Not found */
.lost { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 24px 72px; }
.lost .loop { width: min(260px, 64vw); }
.lost p { margin: 0 0 28px; font-size: 18px; color: var(--muted); }
.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 18px; }
.cta:hover { background: #46303B; }

/* Inner pages */
main.page { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 24px clamp(64px, 9vw, 104px); }
.page-title { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 8vw, 64px); line-height: 1.05; letter-spacing: -0.015em; }
.page-intro, .last-updated { margin: 0 0 40px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Legal text */
.legal { font-size: 16px; line-height: 1.7; }
.legal h2 { margin: 44px 0 12px; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent); }
.summary { margin-bottom: 8px; padding: 22px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

/* Support */
.faq-list { margin-bottom: 40px; }
.faq-item { padding: 22px 24px; margin-bottom: 12px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.faq-q { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.faq-a { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.contact-block { padding: clamp(24px, 5vw, 40px); border-radius: 26px; background: var(--lilac); }
.contact-heading { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.contact-desc { margin: 0 0 22px; font-size: 16px; line-height: 1.55; }
.contact-email { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* Footer */
footer { border-top: 1px solid var(--line); }
.foot { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

@media (max-width: 560px) { .site-nav a.nav-cta { display: none; } }

@media (max-width: 420px) {
  .site-header { padding: 12px 16px; }
  .site-nav { font-size: 15px; gap: 0; }
  .site-nav a { padding: 0 7px; }
  .logo { font-size: 21px; }
  .logo img { width: 30px; }
  .hero, .section, .lost, main.page, .foot { padding-left: 16px; padding-right: 16px; }
}
