/* Splatpad — app-specific layer on top of golka-base.css.
   Only the accent tokens and this property's own layout live here; anything
   reusable belongs in assets.golka.org (spec §4). */

:root {
  /* Derived from the app icon, whose gradient runs #FF4F8B -> #FF9A6C.
     The icon pink is far too light for text (2.90:1 on --bg), so --accent is
     that same hue (338deg) darkened until it clears AA on both --bg and --card:
     6.47:1 and 5.27:1. The icon pink itself is kept for decoration only. */
  --accent: #B01049;
  --accent-soft: #FF6F97;
  --accent-tint: #FFE1E9;
}

/* ---------- header ---------- */
.sp-header { padding-block: var(--space-6); }
.sp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.sp-header__studio { font-size: var(--text-sm); color: var(--ink-muted); text-decoration: none; }
.sp-header__studio:hover { color: var(--accent); text-decoration: underline; }

.sp-brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.sp-brand img { width: 2rem; height: 2rem; border-radius: 22%; flex: none; }

/* ---------- hero ---------- */
.sp-hero { padding-block: var(--space-12) var(--space-8); }
.sp-hero__inner { display: grid; gap: var(--space-12); }
.sp-hero__copy { max-width: 34rem; }
.sp-hero__sub { font-size: var(--text-lg); color: var(--ink-muted); }
.sp-hero__note { margin-top: calc(-1 * var(--space-2)); color: var(--ink-muted); }

@media (min-width: 62rem) {
  .sp-hero__inner { grid-template-columns: 1fr 1.15fr; align-items: center; gap: var(--space-16); }
  .sp-hero__note { grid-column: 1 / -1; margin-top: calc(-1 * var(--space-8)); }
}

/* The picture is what a child's canvas looks like: dark, like in the app, so
   the colours carry. The card gradient behind it is the icon gradient. */
.sp-hero__canvas {
  margin: 0;
  padding: clamp(0.6rem, 2.4vw, 1.1rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, #FF4F8B, #FF9A6C);
  box-shadow: 0 18px 40px -24px rgba(43, 38, 34, 0.55);
}
.sp-hero__canvas img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 0.5rem);
}

.sp-icon { width: 1.1rem; height: 1.1rem; flex: none; }

/* ---------- store link ---------- */
.sp-store { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.sp-store__terms { font-size: var(--text-sm); color: var(--ink-muted); }
.sp-buy {
  gap: var(--space-4);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6);
  font-size: 1.125rem;
  font-weight: 600;
}
.sp-buy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sp-buy__price {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg) 20%, transparent);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--text-sm);
  font-weight: 500;
}
.sp-store__soon {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
}

/* ---------- features ---------- */
/* Explicit column counts rather than auto-fit: with four features, auto-fit
   lands on three columns at both desktop and tablet widths and orphans the
   fourth on its own row. 1 / 2 / 4 always divides evenly. */
.sp-features {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .sp-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .sp-features { grid-template-columns: repeat(4, 1fr); } }
.sp-feature .sp-icon { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.sp-feature h3 { margin-top: var(--space-3); }
.sp-feature p { margin-bottom: 0; }

/* ---------- support ---------- */
.sp-support { background: var(--card); }
.sp-faq { border-bottom: 1px solid var(--hairline); }
.sp-faq summary {
  padding-block: var(--space-4);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--accent); flex: none;
}
.sp-faq[open] summary::after { content: "\2013"; }
.sp-faq__body { padding-bottom: var(--space-4); color: var(--ink-muted); }
.sp-faq__body :last-child { margin-bottom: 0; }
.sp-support__contact { margin-top: var(--space-8); }

/* ---------- privacy ---------- */
.sp-privacy__claim {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

.sp-prose h2 { margin-top: var(--space-12); }
.sp-prose h3 { margin-top: var(--space-8); }

/* ---------- footer ---------- */
.sp-footer { padding-block: var(--space-8) var(--space-16); }
.sp-footer__inner { display: grid; gap: var(--space-3); padding-top: var(--space-8); }
.sp-footer__family { display: flex; align-items: center; gap: var(--space-3); margin: 0; }
.sp-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-6); font-size: var(--text-sm); }
.sp-footer p { margin: 0; }
