/* Little Lines – website styles. Plain CSS, no external resources. */

:root {
  --coral: #FF7361;
  --pink: #FA5C9E;
  --violet: #8C66F2;
  --sky: #40A0FF;
  --mint: #33C79E;
  --sun: #FFBD33;
  --ink: #2B2652;

  --text: #2B2652;
  --muted: #5B5680;
  --bg: #FFFBF7;
  --bg-2: #F7F2FF;
  --card: #FFFFFF;
  --card-line: rgba(43, 38, 82, 0.08);
  --chip: #F3EEFF;
  --shadow: 0 1px 2px rgba(43, 38, 82, 0.06), 0 12px 32px -12px rgba(43, 38, 82, 0.22);
  --shadow-lg: 0 2px 6px rgba(43, 38, 82, 0.08), 0 30px 60px -20px rgba(43, 38, 82, 0.35);
  --grad: linear-gradient(110deg, #FF7361 0%, #FA5C9E 48%, #8C66F2 100%);
  /* Darker version of the brand gradient for text, so it keeps enough contrast. */
  --grad-text: linear-gradient(110deg, #EC4E3B 0%, #E0397F 48%, #7348E6 100%);
  --radius: 30px;
  --radius-sm: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}



*, *::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;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, li a, dd a { color: #6A45E0; text-decoration-thickness: 2px; text-underline-offset: 3px; }


:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 750; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.grad-text {
  /* Room for the last letter's overhang (tight letter spacing), so the gradient covers all of it. */
  padding-right: 0.1em;
  margin-right: -0.1em;
  padding-bottom: 0.06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D63C7E;
  margin-bottom: 12px;
}


.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40em; }

/* ---------- Header: logo, links and button float over the page ---------- */

/* No bar: a blur that fades out downward keeps the header readable over the content. */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 16px 0; pointer-events: none; }
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.site-header.scrolled::before { opacity: 1; }
.nav-shell {
  pointer-events: auto;
  width: min(var(--wrap), 100%); margin-inline: auto;
  display: flex; align-items: center; gap: 10px; padding: 4px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px; flex: none;
  text-decoration: none; font-weight: 850; font-size: 21px; letter-spacing: -0.02em;
}
.brand img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 8px 18px -8px rgba(250, 92, 158, 0.8); transition: transform 0.45s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-12deg) scale(1.1); }
.brand span { transition: color 0.3s ease; }
.brand:hover span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { position: relative; display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.nav a {
  position: relative; text-decoration: none; font-weight: 750; font-size: 16px; color: var(--text);
  padding: 8px 12px 12px; transition: color 0.25s ease, translate 0.25s ease;
}
.nav a:hover { translate: 0 -1px; }
/* A crayon squiggle under the link, drawn in from the left on hover; it stays under the section being read. */
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 11px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 40 11' preserveAspectRatio='none'%3E%3Cpath d='M1 5c4-4 6-4 9 0s6 4 9 0 6-4 10 0 6 3 10-1' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 40 11' preserveAspectRatio='none'%3E%3Cpath d='M1 5c4-4 6-4 9 0s6 4 9 0 6-4 10 0 6 3 10-1' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 0.45s cubic-bezier(.4,0,.2,1);
}
.nav a:hover::after, .nav a.active::after, .nav a[aria-current="page"]::after { clip-path: inset(0 0 0 0); }
.nav-glow { display: none; }

.nav-end { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { display: inline-flex; padding: 3px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(43, 38, 82, 0.08); border-radius: 999px; box-shadow: 0 6px 16px -10px rgba(43, 38, 82, 0.4); }
.lang a, .lang span { display: inline-block; line-height: 1.4;
  font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-decoration: none;
}
.lang span { background: #fff; color: var(--text); box-shadow: 0 2px 6px -2px rgba(43, 38, 82, 0.25); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px 9px 13px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 15px; color: #fff;
  background: var(--grad); background-size: 160% 100%;
  box-shadow: 0 8px 20px -8px rgba(250, 92, 158, 0.8);
  transition: background-position 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta svg { width: 17px; height: 17px; margin-top: -2px; }
.nav-cta:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(140, 102, 242, 0.85); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(43, 38, 82, 0.08); border-radius: 50%; background: rgba(255, 255, 255, 0.75); box-shadow: 0 6px 16px -10px rgba(43, 38, 82, 0.4); cursor: pointer; position: relative; }
.nav-toggle i { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--text); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle i:nth-child(1) { top: 14px; } .nav-toggle i:nth-child(2) { top: 20px; } .nav-toggle i:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Narrower screens: the links fold into a menu that drops out of the capsule. */
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 26px;
    box-shadow: 0 24px 50px -20px rgba(43, 38, 82, 0.4);
    opacity: 0; translate: 0 -8px; scale: 0.98; pointer-events: none; visibility: hidden;
    transition: opacity 0.25s ease, translate 0.25s ease, scale 0.25s ease, visibility 0.25s;
  }
  .nav.open { opacity: 1; translate: none; scale: none; pointer-events: auto; visibility: visible; }
  .nav a { font-size: 17px; padding: 12px 16px; }
  .nav a:hover, .nav a.active, .nav a[aria-current="page"] { background: rgba(250, 92, 158, 0.1); }
  .nav-glow { display: none; }
  .nav-shell { position: relative; justify-content: space-between; }
  .nav a::after { display: none; }
}
@media (max-width: 480px) {
  .site-header { padding: 10px 10px 0; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 10px; }
  .nav-cta svg { margin: -2px 0 0; }
}

/* ---------- Buttons / badge ---------- */

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111018; color: #fff; text-decoration: none;
  padding: 11px 22px 11px 16px; border-radius: 16px;
  box-shadow: 0 10px 24px -10px rgba(17, 16, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.store-badge svg { width: 30px; height: 30px; flex: none; }
.store-badge small { display: block; font-size: 12px; font-weight: 600; opacity: 0.8; line-height: 1.2; letter-spacing: 0.02em; }
.store-badge strong { display: block; font-size: 20px; line-height: 1.15; font-weight: 750; letter-spacing: -0.01em; }
.store-badge[aria-disabled="true"] { cursor: default; }


.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 750; text-decoration: none;
  background: var(--card); color: var(--text); box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 90px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-icon {
  width: 104px; height: 104px; border-radius: 24px; margin-bottom: 22px;
  box-shadow: 0 18px 36px -14px rgba(250, 92, 158, 0.65), 0 2px 6px rgba(43, 38, 82, 0.1);
}
.hero h1 { font-size: clamp(52px, 8vw, 92px); font-weight: 850; letter-spacing: -0.035em; margin-bottom: 6px; }
.hero .tagline { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em; text-wrap: balance; }
.hero .lead { margin-bottom: 30px; max-width: 30em; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li {
  font-size: 15px; font-weight: 700; color: var(--muted);
  background: var(--card); border: 1px solid var(--card-line);
  padding: 6px 13px; border-radius: 999px;
}
.pills li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--mint); }
.pills li:nth-child(2)::before { background: var(--sky); }
.pills li:nth-child(3)::before { background: var(--pink); }

.hero-visual { position: relative; justify-self: center; width: min(430px, 100%); }
.hero-visual .ipad { transform: rotate(2.5deg); position: relative; z-index: 2; }
.hero-card {
  position: absolute; z-index: 1; width: 46%; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid var(--card); background: var(--card);
}
.hero-card.one { left: -26%; top: 12%; transform: rotate(-9deg); }
.hero-card.two { right: -22%; bottom: 8%; transform: rotate(8deg); z-index: 3; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-icon { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .pills { justify-content: center; }
  .hero-visual { width: min(360px, 74%); margin-top: 12px; }
}

/* ---------- iPad frame ---------- */

.ipad {
  background: linear-gradient(145deg, #3A3656, #1A1828);
  padding: 3.6%;
  border-radius: 9% / 6.8%;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.ipad img { border-radius: 5.6% / 4.2%; width: 100%; aspect-ratio: 2064 / 2752; object-fit: cover; background: #f4eefc; }

/* ---------- Doodles ---------- */

.doodles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.doodle { position: absolute; opacity: 0.9; animation: float 9s ease-in-out infinite; }
.doodle:nth-child(2n) { animation-duration: 11s; animation-delay: -3s; }
.doodle:nth-child(3n) { animation-duration: 13s; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); }
}
@media (prefers-reduced-motion: reduce) { .doodle { animation: none; transform: rotate(var(--r, 0deg)); } }
@media (max-width: 700px) { .doodle.hide-sm { display: none; } }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head .lead { margin-inline: auto; }
.tint { background: linear-gradient(180deg, transparent, var(--bg-2) 14%, var(--bg-2) 86%, transparent); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
}

/* Split rows: text + visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 120px); }
.split.flip > :first-child { order: 2; }
.split .ipad { width: min(380px, 100%); margin-inline: auto; }
.split .ipad.tilt-l { transform: rotate(-2deg); }
.split .ipad.tilt-r { transform: rotate(2deg); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split .ipad { width: min(320px, 82%); }
}
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 36px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Before / after */
.compare {
  --pos: 50%;
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 8px solid var(--card); background: var(--card);
  aspect-ratio: 4 / 3; user-select: none; -webkit-user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
  background: #fff; box-shadow: 0 0 0 1px rgba(43, 38, 82, 0.15); pointer-events: none;
}
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--grad); box-shadow: 0 6px 16px -4px rgba(140, 102, 242, 0.7), 0 0 0 4px #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M18 16l-6 7 6 7M28 16l6 7-6 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--grad);
}
.compare input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 4px; }
.compare .tag {
  position: absolute; bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); padding: 4px 12px; border-radius: 999px; pointer-events: none;
}
.compare .tag.l { left: 14px; }
.compare .tag.r { right: 14px; }

/* Mode cards */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { padding: 28px; position: relative; overflow: hidden; }
.mode .age { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mode h3 { margin-top: 6px; }
.mode p { color: var(--muted); margin: 0; }
.icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px;
  color: #fff;
}
.icon svg { width: 30px; height: 30px; }
.c-coral { background: linear-gradient(140deg, #FF8C6E, var(--coral)); }
.c-pink { background: linear-gradient(140deg, #FF7DB4, var(--pink)); }
.c-violet { background: linear-gradient(140deg, #A587FF, var(--violet)); }
.c-sky { background: linear-gradient(140deg, #6BB8FF, var(--sky)); }
.c-mint { background: linear-gradient(140deg, #5ADBB5, var(--mint)); }
.c-sun { background: linear-gradient(140deg, #FFD066, var(--sun)); }
.age-bar {
  display: flex; align-items: center; gap: 12px; margin: 30px auto 0; max-width: 620px;
  font-weight: 750; font-size: 15px; color: var(--muted);
}
.age-bar i { flex: 1; height: 8px; border-radius: 99px; background: var(--grad); }
@media (max-width: 920px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .modes { grid-template-columns: 1fr; } .mode { padding: 24px; } }

/* Library */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat { padding: 24px 22px; text-align: center; }
.stat b { display: block; font-size: clamp(36px, 4vw, 48px); font-weight: 850; line-height: 1.05; letter-spacing: -0.03em; }
.stat span { font-weight: 650; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 auto; max-width: 900px; }
.chips li {
  background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 16px;
}
.chips li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 9px; transform: rotate(45deg); background: var(--coral); }
.chips li:nth-child(6n+2)::before { background: var(--pink); }
.chips li:nth-child(6n+3)::before { background: var(--violet); }
.chips li:nth-child(6n+4)::before { background: var(--sky); }
.chips li:nth-child(6n+5)::before { background: var(--mint); }
.chips li:nth-child(6n+6)::before { background: var(--sun); }

.gallery { margin-top: clamp(36px, 5vw, 56px); overflow: hidden; padding: 14px 0 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery-track { display: flex; gap: 20px; width: max-content; animation: marquee 70s linear infinite; padding: 0; margin: 0; list-style: none; }
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-track li { flex: none; width: clamp(200px, 22vw, 270px); }
.gallery-track img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px;
  border: 5px solid var(--card); box-shadow: var(--shadow);
}
.gallery-track li:nth-child(odd) img { transform: rotate(-1.5deg); }
.gallery-track li:nth-child(even) img { transform: rotate(1.5deg) translateY(8px); }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .gallery { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .gallery-track { animation: none; padding-inline: 16px; }
  .gallery-track li[aria-hidden="true"] { display: none; }
}

/* Activity tiles (dots, numbers, notebooks, finish the picture) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.tile { padding: 28px; }
.tile p { color: var(--muted); margin: 0; }
.tile .art { height: 120px; margin: -6px 0 18px; border-radius: 20px; display: grid; place-items: center; }
.tile .art svg { height: 100px; width: auto; }
.art.dots { background: #FFF1E5; }
.art.numbers { background: #EAF5FF; }
.art.notebook { background: #F1ECFF; }
.art.finish { background: #E6F8F1; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) { .tiles { grid-template-columns: 1fr; } .tile { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; } .tile .art { margin: 0; } }
@media (max-width: 480px) { .tile { grid-template-columns: 1fr; } }

/* New: spotlight cards (tracing, stickers, time-lapse) */
.spotlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Subgrid keeps the pictures and the texts of all three cards on the same lines. */
.spot { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 0; overflow: hidden; }
.spot-visual {
  position: relative; isolation: isolate; display: grid; place-items: center;
  padding: 30px 17% 26px; min-height: 360px; background: var(--sv-bg, #FFF1E5);
}
.spot-visual::before {
  content: ""; position: absolute; z-index: -1; inset: 10% 6%; border-radius: 50%;
  background: var(--sv-glow); filter: blur(18px); opacity: 0.8;
}
.spot-visual .ipad { width: 100%; }
.spot-visual.film-pad { padding-inline: 9%; }
.spot-visual .ipad.tilt-l { transform: rotate(-2.5deg); }
.spot-visual .ipad.tilt-r { transform: rotate(2.5deg); }
.sv-sky { --sv-bg: #EAF5FF; --sv-glow: radial-gradient(circle, rgba(64, 160, 255, 0.45), transparent 70%); }
.sv-sun { --sv-bg: #FFF4DC; --sv-glow: radial-gradient(circle, rgba(255, 189, 51, 0.5), transparent 70%); }
.sv-violet { --sv-bg: #F1ECFF; --sv-glow: radial-gradient(circle, rgba(140, 102, 242, 0.42), transparent 70%); }

.spot-body { padding: 26px 28px 30px; display: flex; flex-direction: column; }
.spot-body p { color: var(--muted); margin: 0; }
.spot-body .checks { margin-top: 16px; gap: 8px; font-size: 16px; }
.spot-body .checks li { padding-left: 32px; }
.spot-body .checks li::before { width: 22px; height: 22px; top: 2px; }
.spot-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; background: var(--chip); color: var(--muted);
}
.spot-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tag, var(--pink)); }
.spot-new {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: 12px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(250, 92, 158, 0.8);
}

/* Time-lapse film */
.film { width: 100%; display: grid; gap: 12px; }
.film-player {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3;
  border: 6px solid var(--card); background: var(--card); box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.film-player img, .film-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-player .done { clip-path: circle(0% at 45% 55%); animation: reveal 7s ease-in-out infinite; }
@keyframes reveal {
  0%, 8% { clip-path: circle(0% at 45% 55%); }
  70%, 100% { clip-path: circle(75% at 45% 55%); }
}
.film-play {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 10px;
  right: 12px; padding: 7px 12px 7px 7px; border-radius: 999px;
  background: rgba(23, 20, 43, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.film-play b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.film-play b svg { width: 12px; height: 12px; margin-left: 2px; }
.film-play i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.film-play i::after { content: ""; display: block; height: 100%; width: 100%; border-radius: 99px; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.film-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 4px; }
.film-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 3px solid var(--card); background: var(--card); box-shadow: var(--shadow); }
.film-frame:nth-child(2) .done { clip-path: circle(22% at 45% 55%); }
.film-frame:nth-child(3) .done { clip-path: circle(46% at 45% 55%); }
@media (prefers-reduced-motion: reduce) {
  .film-player .done { animation: none; clip-path: circle(50% at 45% 55%); }
}
@media (max-width: 1000px) {
  .spotlight { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .spot { grid-row: auto; grid-template-rows: auto auto; }
  .spot-visual { padding-inline: 22%; }
  .spot-visual.film-pad { padding-inline: 12%; }
}
@media (max-width: 480px) { .spot-visual { min-height: 0; padding: 28px 16% 24px; } .spot-visual.film-pad { padding-inline: 7%; } .spot-body { padding: 22px 22px 26px; } }

/* Two iPads side by side (connect the dots + color by number) */
.duo { position: relative; width: min(460px, 100%); margin-inline: auto; aspect-ratio: 1 / 1.02; }
.duo .ipad { position: absolute; width: 64%; }
.duo .ipad:first-child { left: 0; top: 0; transform: rotate(-4deg); }
.duo .ipad:last-child { right: 0; bottom: 0; transform: rotate(3.5deg); z-index: 2; }
@media (max-width: 820px) { .duo { width: min(400px, 92%); } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; }
.feature p { color: var(--muted); margin: 0; }
.feature.wide { grid-column: span 2; }
.brushes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.brushes li { font-size: 14px; font-weight: 750; padding: 5px 12px; border-radius: 999px; background: var(--chip); }
.brushes li.fx { color: #fff; background: var(--grad); }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } .feature.wide { grid-column: auto; } }

/* Parents */
.parents { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); }
.parents ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.parents li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-2); border-radius: var(--radius-sm); padding: 16px; font-weight: 650; line-height: 1.35; }
.parents li small { display: block; font-weight: 500; color: var(--muted); font-size: 15px; margin-top: 3px; }
.parents li .icon { width: 40px; height: 40px; border-radius: 12px; margin: 0; flex: none; }
.parents li .icon svg { width: 22px; height: 22px; }
.lock-art { display: grid; place-items: center; }
.lock-art svg { width: min(260px, 70%); height: auto; }
@media (max-width: 920px) { .parents { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .parents ul { grid-template-columns: 1fr; } }

/* Safe for kids */
.safe {
  position: relative; border-radius: calc(var(--radius) + 6px); padding: 6px; background: var(--grad);
  box-shadow: 0 30px 70px -30px rgba(250, 92, 158, 0.6);
}
.safe-inner { background: var(--card); border-radius: var(--radius); padding: clamp(28px, 5vw, 60px); }
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 32px 0 26px; }
.safe-grid li { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-sm); background: var(--bg-2); font-weight: 750; font-size: 19px; line-height: 1.3; }
.safe-grid li small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }
.shield { width: 44px; height: 44px; flex: none; }
@media (max-width: 920px) { .safe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .safe-grid { grid-template-columns: 1fr; } }

/* Closing call to action */
.cta { text-align: center; padding: clamp(40px, 6vw, 70px) clamp(22px, 5vw, 60px); overflow: hidden; position: relative; }
.cta img.cta-icon { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 18px 36px -14px rgba(250, 92, 158, 0.65); }
.cta .langs { color: var(--muted); font-size: 16px; max-width: 760px; margin: 18px auto 0; }

/* ---------- Content pages (support, privacy) ---------- */

.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 36px); text-align: center; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 850; letter-spacing: -0.03em; }
.page-hero .lead { margin-inline: auto; }
.prose { max-width: 780px; margin: 0 auto; padding: clamp(26px, 5vw, 56px); }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.7em; }
.prose li::marker { color: var(--pink); }
.prose .updated { color: var(--muted); font-style: italic; }
.note { margin-top: 28px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--bg-2); font-size: 16px; color: var(--muted); }

.contact-card { max-width: 780px; margin: 0 auto 28px; padding: clamp(24px, 4vw, 40px); display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.contact-card .icon { margin: 0; flex: none; }
.contact-card h2 { font-size: 24px; margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--muted); }
.mail { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: #6A45E0; text-decoration: none; word-break: break-all; }
.mail:hover { text-decoration: underline; }


.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--card-line); border-radius: 22px; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font-weight: 750; font-size: 19px; position: relative; border-radius: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 12l5 5 5-5' fill='none' stroke='%238C66F2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 24px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }
.faq .answer strong { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { margin-top: 24px; padding: 40px 0 48px; border-top: 1px solid var(--card-line); font-size: 16px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; font-weight: 700; color: var(--text); }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand p { margin: 0; line-height: 1.4; }
.heart { color: var(--pink); }

/* 404 */
.lost { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.lost .big { font-size: clamp(90px, 18vw, 180px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Soft colored glow behind showcase iPads */
.stage { position: relative; isolation: isolate; padding: 6% 0; }
.stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(520px, 120%); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
  background: var(--glow, radial-gradient(circle, rgba(250, 92, 158, 0.35), transparent 68%));
  filter: blur(6px);
}
.stage.s-pink { --glow: radial-gradient(circle at 45% 45%, rgba(250, 92, 158, 0.38), rgba(255, 115, 97, 0.12) 50%, transparent 70%); }
.stage.s-mint { --glow: radial-gradient(circle at 55% 45%, rgba(51, 199, 158, 0.38), rgba(64, 160, 255, 0.12) 50%, transparent 70%); }
.stage.s-violet { --glow: radial-gradient(circle at 45% 55%, rgba(140, 102, 242, 0.40), rgba(64, 160, 255, 0.12) 50%, transparent 70%); }

.lang-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.lang-list li { font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--chip); }

/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ==================== Background and effects ==================== */

/* Aurora: soft color clouds drifting slowly behind the page, over a faint dot grid. */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.aurora i {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(60px); opacity: 0.55; mix-blend-mode: multiply;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: radial-gradient(circle at 40% 40%, #FFB3A6, transparent 65%); left: -12vmax; top: -14vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle at 50% 50%, #D7C6FF, transparent 65%); right: -14vmax; top: -6vmax; animation-duration: 31s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: radial-gradient(circle at 50% 50%, #B5DCFF, transparent 65%); left: 30%; top: 40%; animation-duration: 36s; animation-delay: -14s; }
.aurora i:nth-child(4) { background: radial-gradient(circle at 50% 50%, #FFE29A, transparent 65%); left: -10vmax; bottom: -20vmax; animation-duration: 29s; animation-delay: -4s; }
.aurora i:nth-child(5) { background: radial-gradient(circle at 50% 50%, #A8F0D6, transparent 65%); right: -8vmax; bottom: -18vmax; animation-duration: 33s; animation-delay: -20s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(8vmax, 6vmax) scale(1.15) rotate(40deg); }
  66% { transform: translate(-6vmax, 10vmax) scale(0.9) rotate(-30deg); }
  100% { transform: translate(4vmax, -6vmax) scale(1.08) rotate(20deg); }
}
/* A faint coloring page behind everything: outlines that get colored in now and then (one at a time,
   each on its own clock) and fade back to lines. */
.coloring-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.cb { fill: var(--c); fill-opacity: 0; stroke: rgba(43, 38, 82, 0.14); stroke-width: 2.2px; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; animation: color-in 42s ease-in-out infinite; animation-delay: var(--d, 0s); }
.cb * { vector-effect: non-scaling-stroke; }
@keyframes color-in {
  0%, 6% { fill-opacity: 0; }
  10%, 22% { fill-opacity: 0.55; }
  28%, 100% { fill-opacity: 0; }
}

/* The title shimmers through the brand colors. */
.hero h1 .grad-text, .hero h1.grad-text {
  background-size: 220% 100%;
  animation: shimmer 7s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* The device in the hero floats and leans toward the pointer (JS sets --tx/--ty). */
.hero-visual { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); transform: perspective(1200px) rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)); }
.hero-visual .ipad { animation: bob 6s ease-in-out infinite; }
.hero-card.one { animation: bob-card 7s ease-in-out infinite; }
.hero-card.two { animation: bob-card 8s ease-in-out infinite reverse; }
@keyframes bob { 0%, 100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-12px); } }
@keyframes bob-card { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Doodles draw themselves, then drift with the scroll (JS sets --py). */
.doodle { translate: 0 var(--py, 0px); }
.doodle path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s 0.4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Paint trail: the pointer leaves a fading line of color over the hero (canvas from site.js). */
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Sections slide in as they come into view (only with JS, so nothing stays hidden without it). */
/* (translate/scale, not transform, so it adds to the cards' tilt) */
.js .reveal { opacity: 0; translate: 0 28px; scale: 0.98; transition: opacity 0.8s ease, translate 0.8s cubic-bezier(.2,.8,.2,1), scale 0.8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: none; scale: none; }
.card.tilt { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, translate 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.8s ease, scale 0.8s ease; }
.hero .wrap { position: relative; z-index: 2; }

/* Cards lift, glow with a brand-colored rim and lean toward the pointer (JS sets --rx/--ry). */
.card { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card.tilt:hover { box-shadow: 0 2px 6px rgba(43, 38, 82, 0.08), 0 34px 60px -24px rgba(140, 102, 242, 0.45); }
.card.tilt { position: relative; }
.card.tilt::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), #FF7361, #FA5C9E, #8C66F2, #40A0FF, #33C79E, #FFBD33, #FF7361);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease;
}
.card.tilt:hover::after { opacity: 1; animation: spin 4s linear infinite; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }

/* Icons pop when their card is hovered. */
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.icon { transition: transform 0.35s cubic-bezier(.3,1.6,.5,1); }

/* The App Store badge gets a light sweep. */
.store-badge { position: relative; overflow: hidden; }
.store-badge::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  animation: sweep 4.5s ease-in-out infinite 1.5s;
}
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Real time-lapse video in the film player. */
.film-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .cb { animation: none; }
  .aurora i, .hero h1 .grad-text, .hero-visual .ipad, .hero-card.one, .hero-card.two, .store-badge::after, .card.tilt:hover::after { animation: none; }
  .doodle path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js .reveal { opacity: 1; translate: none; scale: none; transition: none; }
  .card { transform: none; }
}
