/* Unpossible Studio. Saturday-morning cartoon: thick ink, hard shadows, stickers. */
@font-face {
  font-family: 'Luckiest Guy';
  src: url('/fonts/luckiest-guy-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FFF4E0;
  --paper-2: #FFE9C7;
  --ink: #1B1230;
  --ink-soft: #4A3F5C;
  --orange: #FF6B1A;
  --pink: #FF3D8B;
  --teal: #00B8A9;
  --violet: #7B4DFF;
  --white: #FFFDF8;
  --line: 4px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  --display: 'Luckiest Guy', 'Arial Black', Impact, sans-serif;
  --body: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27, 18, 48, 0.09) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 16px 56px;
  border-bottom: var(--line) solid var(--ink);
  background:
    radial-gradient(circle at 12% 30%, var(--teal) 0 46px, transparent 47px),
    radial-gradient(circle at 90% 78%, var(--pink) 0 60px, transparent 61px),
    var(--paper-2);
  overflow: hidden;
}
.wordmark { margin: 0; line-height: 0.9; font-weight: 400; }
.wm-big {
  display: block;
  font-family: var(--display);
  font-size: clamp(48px, 12vw, 148px);
  letter-spacing: 0.02em;
  color: var(--orange);
  -webkit-text-stroke: clamp(2px, 0.5vw, 6px) var(--ink);
  paint-order: stroke fill;
  text-shadow: clamp(4px, 0.8vw, 9px) clamp(4px, 0.8vw, 9px) 0 var(--ink);
  transform: rotate(-2deg);
  animation: boing 900ms cubic-bezier(.3, 1.6, .5, 1) both;
}
.wm-small {
  display: block;
  margin-top: 0.35em;
  font-family: var(--display);
  font-size: clamp(20px, 3.6vw, 44px);
  letter-spacing: 0.3em;
  padding-left: 0.3em; /* balance the tracking */
  color: var(--ink);
}
.lede { max-width: 640px; margin: 28px auto 0; font-size: clamp(18px, 2.2vw, 21px); font-weight: 700; }
.lede-2 {
  display: inline-block;
  margin: 18px 0 0;
  padding: 4px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 16px;
  transform: rotate(1deg);
}
.burst {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--violet);
  border: var(--line) solid var(--ink);
  clip-path: polygon(50% 0, 61% 30%, 95% 20%, 72% 47%, 100% 70%, 65% 70%, 60% 100%, 45% 74%, 12% 92%, 28% 62%, 0 40%, 34% 34%);
}
.burst-1 { top: 22px; right: 7%; transform: rotate(12deg); }
.burst-2 { bottom: 20px; left: 5%; width: 70px; height: 70px; background: var(--orange); transform: rotate(-18deg); }

@keyframes boing { from { transform: rotate(-2deg) scale(0.6); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wm-big, .card { animation: none !important; transition: none !important; } }

/* ---------- Sections ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section-title { text-align: center; margin: 56px 0 28px; }
.section-title span {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 0.03em;
  padding: 6px 22px 2px;
  background: var(--teal);
  color: var(--white);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

/* ---------- App cards ---------- */
.cards { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  --c: var(--orange);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 18px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 16px;
  background: var(--c);
  border-bottom: 3px solid var(--ink);
  border-radius: calc(var(--radius) - 5px) calc(var(--radius) - 5px) 0 0;
}
.card:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: 9px 10px 0 var(--ink); }
.card-orange { --c: var(--orange); }
.card-pink { --c: var(--pink); }
.card-teal { --c: var(--teal); }
.card-violet { --c: var(--violet); }
.card h3 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--c);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.card .tagline { margin: 6px 0 0; font-weight: 900; font-size: 19px; }
.card p { margin: 8px 0 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--c, var(--orange));
  color: var(--ink);
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-store { background: var(--ink); color: var(--white); }
.btn-store:hover { color: var(--white); }
.btn-ghost { background: var(--white); }
.btn-soon { background: var(--paper-2); box-shadow: none; border-style: dashed; cursor: default; }
.btn-soon:hover { transform: none; box-shadow: none; }
.legal { margin-top: 14px !important; font-size: 15px; display: flex; gap: 14px; flex-wrap: wrap; }
.legal a { font-weight: 700; }

/* ---------- Contact ---------- */
.contact {
  margin: 64px auto 0;
  max-width: 720px;
  text-align: center;
  padding: 34px 20px;
  background: var(--pink);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
}
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  color: var(--white);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.contact p { font-weight: 800; }
.btn-big { --c: var(--white); font-size: clamp(16px, 3.4vw, 22px); padding: 10px 22px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.foot { margin-top: 72px; padding: 32px 16px 40px; text-align: center; border-top: var(--line) solid var(--ink); background: var(--ink); color: var(--paper); }
.foot a { color: var(--paper); }
.foot a:hover { color: var(--orange); }
.foot p { margin: 6px 0; }
.foot-mark { font-family: var(--display); font-size: 28px; letter-spacing: 0.04em; color: var(--orange); }
.foot-mark span { color: var(--paper); font-size: 16px; letter-spacing: 0.3em; margin-left: 6px; }
.foot-small { font-size: 14px; opacity: 0.8; }

/* ---------- Policy pages ---------- */
.doc-head { padding: 18px 16px; border-bottom: var(--line) solid var(--ink); background: var(--paper-2); }
.brand img { display: block; width: min(240px, 60vw); height: auto; }
.doc-main {
  --c: var(--orange);
  max-width: 760px;
  margin: 36px auto 0;
  padding: 28px clamp(18px, 4vw, 44px) 36px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) { .doc-main { margin: 20px 16px 0; } }
.doc-orange .doc-main { --c: var(--orange); }
.doc-pink .doc-main { --c: var(--pink); }
.doc-teal .doc-main { --c: var(--teal); }
.doc-violet .doc-main { --c: var(--violet); }
.eyebrow { margin: 0; }
.eyebrow a {
  display: inline-block;
  padding: 2px 12px;
  background: var(--c);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.doc-main h1 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.updated { margin: 6px 0 0; color: var(--ink-soft); font-weight: 700; font-size: 15px; }
.prose { margin-top: 22px; overflow-wrap: anywhere; }
.prose h2 { margin: 30px 0 8px; font-size: 23px; font-weight: 900; line-height: 1.25; }
.prose h2::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 10px; background: var(--c); border: 2px solid var(--ink); border-radius: 3px; transform: rotate(12deg); vertical-align: 2px; }
.prose h3 { margin: 22px 0 6px; font-size: 19px; font-weight: 900; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 2px solid var(--ink); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }
.prose blockquote { margin: 14px 0; padding: 8px 16px; border-left: 6px solid var(--c); background: var(--paper); }
.doc-nav { margin-top: 32px; padding-top: 18px; border-top: 3px dashed var(--ink); display: flex; flex-wrap: wrap; gap: 16px; font-weight: 800; }
.center { text-align: center; }
.wm-404 { font-size: clamp(80px, 20vw, 160px) !important; color: var(--orange); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink); }
.wm-404 span { color: var(--teal); display: inline-block; transform: rotate(14deg); }
