/* Pikolark, redesigned 2026-11-27 with the ui-ux-pro-max design system:
   claymorphism (soft, chunky, toy-like surfaces), playful indigo with an energetic orange,
   Baloo 2 headings, light mode only. Body text stays in Lexend, the app's own reading font.
   Every file is served from pikolark.com itself: no other site is contacted. */

@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/baloo2-latin-wght.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('fonts/lexend-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-primary: #4f46e5;
  --color-primary-deep: #3730a3;
  --color-secondary: #818cf8;
  --color-accent: #ea580c;
  --color-accent-soft: #ffedd5;
  --color-accent-ink: #9a3412;
  --color-background: #eef2ff;
  --color-foreground: #1e1b4b;
  --color-card: #ffffff;
  --color-muted: #e0e7ff;
  --color-muted-foreground: #475569;
  --color-border: #c7d2fe;
  --font-heading: 'Baloo 2', 'Lexend', system-ui, sans-serif;
  --font-body: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --clay: 0 10px 24px rgb(79 70 229 / 0.14), inset 0 -5px 0 rgb(79 70 229 / 0.07), inset 0 3px 0 rgb(255 255 255 / 0.9);
  --press: 200ms ease-out;
  --wide: 1120px;
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font: 400 1.0625rem/1.65 var(--font-body);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-foreground); }

a { color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--color-primary-deep); }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header { padding: 16px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 1.6rem/1 var(--font-heading); color: var(--color-foreground); text-decoration: none; }
.brand:hover { color: var(--color-foreground); }
.brand img { width: 40px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--color-foreground); font-weight: 500; text-decoration: none; transition: background-color var(--press); }
.site-nav a:hover { background: var(--color-muted); }

/* Buttons: chunky, with a soft press */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius-md);
  font: 700 1.1rem/1 var(--font-heading); text-decoration: none; cursor: pointer;
  transition: transform var(--press), box-shadow var(--press), background-color var(--press);
}
.btn-primary { background: var(--color-primary); color: #ffffff; box-shadow: 0 6px 0 var(--color-primary-deep), 0 14px 24px rgb(79 70 229 / 0.25); }
.btn-primary:hover { color: #ffffff; background: #4338ca; }
.btn-secondary { background: var(--color-card); color: var(--color-primary); border: 3px solid var(--color-border); box-shadow: 0 6px 0 var(--color-border); }
.btn-secondary:hover { color: var(--color-primary-deep); }
.btn:active { transform: translateY(4px); }
.btn-primary:active { box-shadow: 0 2px 0 var(--color-primary-deep), 0 6px 12px rgb(79 70 229 / 0.2); }
.btn-secondary:active { box-shadow: 0 2px 0 var(--color-border); }

/* Hero: the lark perched on a phone showing the real app */
.hero { padding: 24px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 8vw, 4.75rem); line-height: 0.98; font-weight: 800; letter-spacing: -0.015em; max-width: 10ch; }
.hero-lede { margin: 20px 0 0; max-width: 44ch; font-size: 1.15rem; color: var(--color-muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.stage { position: relative; display: grid; place-items: center; min-height: 500px; padding-top: 70px; }
.stage::before { content: ''; position: absolute; width: min(460px, 92vw); aspect-ratio: 1; border-radius: 50%; background: var(--color-muted); top: 50%; left: 50%; transform: translate(-50%, -46%); }
.phone {
  position: relative; width: 230px; padding: 9px; border-radius: 38px;
  background: var(--color-foreground);
  box-shadow: 0 24px 40px rgb(30 27 75 / 0.28), inset 0 2px 0 rgb(255 255 255 / 0.18);
}
.phone .shot { border-radius: 30px; aspect-ratio: 540 / 1050; object-fit: cover; }
.phone-back { position: absolute; width: 196px; transform: translate(-58%, 18px) rotate(-9deg); opacity: 0.96; }
.phone-front { transform: translateX(22%) rotate(3deg); }
.perched { position: absolute; width: 96px; top: -78px; right: 18px; }
@media (min-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
  .stage { min-height: 580px; }
  .phone { width: 260px; }
  .phone-back { width: 220px; }
}
@media (max-width: 420px) {
  .phone { width: 190px; }
  .phone-back { width: 160px; transform: translate(-45%, 18px) rotate(-9deg); }
  .phone-front { transform: translateX(16%) rotate(3deg); }
  .stage { min-height: 440px; }
  .brand { font-size: 1.4rem; }
  .brand img { width: 34px; }
  .site-nav a { padding: 0 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .perched { animation: land 900ms cubic-bezier(.2, .9, .3, 1.25) 300ms both; }
  @keyframes land {
    from { transform: translate(60px, -80px) rotate(-10deg); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* Sections */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 72px 0; } }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.08; font-weight: 800; }
.section-head p { margin: 12px 0 0; font-size: 1.1rem; color: var(--color-muted-foreground); }

/* CosmoKids */
.app-title { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.app-title img { width: 84px; border-radius: 22px; box-shadow: var(--clay); }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent-ink); font-weight: 600; font-size: 0.95rem; }

.features { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  background: var(--color-card); border: 3px solid var(--color-card);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--clay);
}
.card h3 { margin: 16px 0 6px; font-size: 1.35rem; line-height: 1.2; font-weight: 700; }
.card p { margin: 0; color: var(--color-muted-foreground); }
.chip { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--color-background); color: var(--color-primary); box-shadow: inset 0 -3px 0 rgb(79 70 229 / 0.1); }
.app-more { margin: 32px 0 0; }

/* Promises: on an indigo band */
.band { background: var(--color-primary); color: #ffffff; border-radius: 40px; margin: 0 8px; }
@media (min-width: 720px) { .band { margin: 0 24px; } }
.band .section-head h2 { color: #ffffff; }
.band .section-head p { color: #e0e7ff; }
.promises { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.promises .card { color: var(--color-foreground); box-shadow: 0 10px 0 var(--color-primary-deep); }
.promises .chip { background: var(--color-accent-soft); color: var(--color-accent-ink); }

/* Contact call to action */
.cta { text-align: center; }
.cta .card { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(2rem, 4.5vw, 2.6rem); line-height: 1.1; font-weight: 800; }
.cta p { margin: 0 auto 28px; max-width: 46ch; color: var(--color-muted-foreground); }
.cta .perched-small { width: 72px; margin: 0 auto 8px; }

.site-footer { padding: 32px 0 48px; color: var(--color-muted-foreground); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* Policy pages */
.doc-head { padding: 24px 0 8px; }
.doc-head h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.02; font-weight: 800; }
.doc-date { margin: 8px 0 0; color: var(--color-muted-foreground); }
.summary { margin: 28px 0 0; max-width: var(--measure); background: var(--color-card); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--clay); border-left: 8px solid var(--color-accent); }
.summary h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 700; }
.summary p { margin: 0; }
.doc { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 24px; }
.toc { background: var(--color-card); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--clay); }
.toc h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.3rem; font-size: 0.95rem; line-height: 1.6; }
.toc li { padding: 3px 0; }
.toc a { color: var(--color-foreground); text-decoration-color: var(--color-border); }
.toc a:hover { color: var(--color-primary); text-decoration-color: currentColor; }
.prose { max-width: var(--measure); background: var(--color-card); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--clay); }
@media (min-width: 720px) { .prose { padding: 40px 48px; } }
.prose h2 { font-size: 1.55rem; line-height: 1.2; font-weight: 700; margin: 36px 0 8px; scroll-margin-top: 24px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
@media (min-width: 980px) {
  .doc { grid-template-columns: 250px 1fr; gap: 40px; }
  .toc { position: sticky; top: 24px; align-self: start; }
}

/* Not-found page */
.lost { padding: 40px 0 72px; text-align: center; }
.lost .card { max-width: 560px; margin: 0 auto; padding: 48px 24px; }
.lost img { width: 110px; margin: 0 auto 16px; transform: rotate(-14deg); }
.lost h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.05; font-weight: 800; }
.lost p { margin: 0 0 24px; color: var(--color-muted-foreground); }

/* Scroll reveal (2026-11-27): cards rise into place as they scroll into view. CSS only, no
   script: browsers without scroll-driven animations, and anyone who asks for reduced motion,
   simply see the cards in place. Cards in the same row arrive one after another. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .features .card,
    .promises .card,
    .cta .card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .features .card:nth-child(3n + 2),
    .promises .card:nth-child(3n + 2) { animation-range: entry 10% entry 65%; }
    .features .card:nth-child(3n + 3),
    .promises .card:nth-child(3n + 3) { animation-range: entry 20% entry 75%; }
    @keyframes rise {
      from { opacity: 0; transform: translateY(28px) scale(0.98); }
      to { opacity: 1; transform: none; }
    }
  }
}
