/* Canvas Blocks — shared styles.
   Motion rules: only transform/opacity animate; one strong ease-out curve; UI feedback stays
   under 300ms; the hero reveal is the only long, explanatory animation; reduced-motion users
   get the finished state with gentle fades. */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap');

:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --peach: #ffe1d4;
  --ink: #2b1e2e;
  --ink-soft: #5d4d58;
  --muted: #8a7a84;
  --line: rgba(43, 30, 46, 0.08);
  --coral: #ff6b73;
  --tangerine: #ffa438;
  --mint: #45c794;
  --sky: #4f9eff;
  --grape: #9b72f2;
  --gold: #ffb829;
  --radius: 28px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(43,30,46,.15); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { background: rgba(43,30,46,.06); color: var(--ink); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-store { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(43,30,46,.22); }
.btn-store small { display: block; font-size: .7rem; font-weight: 700; opacity: .7; line-height: 1; }
.btn-store span { line-height: 1.15; text-align: left; }
.btn-store[aria-disabled="true"] { cursor: default; }
.btn-store[aria-disabled="true"]:active { transform: none; }
.btn-ghost { background: rgba(43,30,46,.06); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-store:not([aria-disabled="true"]):hover { box-shadow: 0 12px 28px rgba(43,30,46,.28); }
  .btn-ghost:hover { background: rgba(43,30,46,.1); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(255,164,56,.22), transparent 70%),
    radial-gradient(35% 45% at 15% 20%, rgba(155,114,242,.14), transparent 70%),
    radial-gradient(50% 50% at 50% 100%, rgba(255,107,115,.12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px;
}
.eyebrow i { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--gold), var(--tangerine)); display: inline-block; }
h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 900;
  margin: 18px 0 18px;
}
h1 .paint {
  background: linear-gradient(100deg, var(--coral), var(--tangerine) 30%, var(--gold) 50%, var(--mint) 70%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.cta-note { font-size: .9rem; color: var(--muted); font-weight: 700; }

/* The reveal demo: candy blocks over a real painting; rows clear to uncover it. */
.reveal-demo {
  --n: 5;
  position: relative; aspect-ratio: 1; width: min(460px, 100%); justify-self: center;
  border-radius: 34px; padding: 14px;
  background: linear-gradient(180deg, #fffaf1, #f7e8dc);
  box-shadow: 0 30px 60px -20px rgba(97, 40, 54, .35), 0 0 0 1px rgba(255,255,255,.7) inset;
  rotate: -2deg;
}
.reveal-demo .art {
  position: absolute; inset: 14px; border-radius: 22px; overflow: hidden;
  background: url(images/painting-koi-pond.webp) center / cover;
}
.reveal-demo .grid {
  position: absolute; inset: 14px; display: grid; gap: 6px;
  grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: repeat(var(--n), 1fr);
}
.block {
  border-radius: 22%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 78%, #000));
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #000), 0 8px 14px -6px rgba(43,30,46,.45), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform 520ms var(--ease-out), opacity 420ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.block.gone { transform: translateY(-10px) scale(0.86) rotate(var(--r, 6deg)); opacity: 0; }
.block.wild { --c: var(--gold); box-shadow: 0 4px 0 #b97a06, 0 0 22px rgba(255,190,60,.7), inset 0 1px 0 rgba(255,255,255,.8); }
.reveal-demo .caption {
  position: absolute; left: 50%; bottom: -18px; translate: -50% 0;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(43,30,46,.25);
  rotate: 2deg;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 40px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.025em; line-height: 1.1; font-weight: 900; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 12px 30px -18px rgba(43,30,46,.25);
}
.card .num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; color: #fff; margin-bottom: 16px;
  background: var(--c); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 62%, #000);
}
.card h3 { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; margin-bottom: 6px; }
.card p { color: var(--ink-soft); }

/* Screenshots strip */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.phone {
  border-radius: 34px; padding: 8px; background: #1d1620;
  box-shadow: 0 24px 50px -24px rgba(43,30,46,.55);
}
.phone img { border-radius: 27px; }
.shots figure:nth-child(even) { margin-top: 36px; }
.shots figcaption { text-align: center; font-weight: 800; color: var(--ink-soft); margin-top: 12px; font-size: .95rem; }

/* Gallery of paintings */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.frame {
  background: linear-gradient(145deg, #ffe7a8, #d79a35 45%, #ffd477 70%, #b77a1f);
  padding: 7px; border-radius: 16px; box-shadow: 0 14px 26px -14px rgba(97,60,10,.6);
  transition: transform 220ms var(--ease-out);
}
.frame img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery figcaption { text-align: center; font-weight: 800; font-size: .88rem; margin-top: 8px; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .gallery figure:hover .frame { transform: translateY(-4px) rotate(-1deg); }
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .dot { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--c) 18%, #fff); }

/* Closing CTA */
.closing {
  text-align: center; background: linear-gradient(160deg, #fff0e2, #ffe0dc);
  border-radius: 40px; padding: 56px 24px; border: 1px solid var(--line);
}
.closing img { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 14px 30px -12px rgba(97,40,54,.45); }
.closing .cta-row { justify-content: center; }

/* Prose pages (privacy, support) */
.prose { max-width: 46rem; margin: 0 auto; padding: 56px 0 24px; }
.prose h1 { font-size: clamp(2.2rem, 4.4vw, 3rem); margin-top: 8px; }
.prose .updated { color: var(--muted); font-weight: 700; margin-bottom: 26px; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.05rem; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0 1.2rem; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--coral); }
.prose a { color: #c2414b; font-weight: 700; text-underline-offset: 3px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 4px 20px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 900; color: var(--muted); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; }
.contact-card { margin-top: 30px; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-weight: 700; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: var(--ink); } }

/* Entrance: fade up from 0.98, staggered, once. */
.rise { opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .steps, .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav-links a { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .shots figure:nth-child(even) { margin-top: 0; }
  .nav-links a.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { transform: none; transition: opacity 300ms ease; }
  .block { transition: opacity 300ms ease; }
  .block.gone { transform: none; }
  .frame { transition: none; }
}
