/* Puddle Studios: still water, and each app is a stone dropped into it. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --water-0: #061923;
  --water-1: #0a2230;
  --water-2: #10303f;
  --water-3: #1a4255;
  --ink: #e9f2f6;
  --ink-2: #a8c2ce;
  --ink-3: #7f9cab;
  --rain: #8fd3ef;
  --rain-deep: #3f9cc4;
  --line: rgba(143, 211, 239, 0.16);

  --display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--water-3) var(--water-0);
}

body {
  margin: 0;
  background: var(--water-1);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--rain); color: var(--water-0); }

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--rain);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--rain); color: var(--water-0);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- Ripple field ---------- */

#ripples {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

main, .site-head, .site-foot { position: relative; z-index: 1; }
.site-head { z-index: 20; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--water-1) 92%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 20px; flex: none; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Capsules ---------- */

.capsule {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.capsule svg { width: 16px; height: 16px; flex: none; }
.capsule:hover { transform: translateY(-2px); }
.capsule:active { transform: translateY(0); }
.capsule.solid { background: var(--rain); color: var(--water-0); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6); }
.capsule.solid:hover { background: #b2e3f6; }
.capsule.ghost { color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.capsule.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.8;
}

/* ---------- Hero: the pond ---------- */

.pond {
  min-height: min(92svh, 900px);
  display: grid;
  align-items: center;
  padding-block: clamp(48px, 9vh, 110px) clamp(56px, 10vh, 120px);
}
.pond .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.pond h1 { font-size: clamp(2rem, 4.5vw, 4rem); }
.pond h1 span { display: block; color: var(--rain); }
.pond .lede {
  margin-top: 28px; max-width: 34ch;
  font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2);
}
.pond .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.stones {
  position: relative;
  aspect-ratio: 1 / 1.02;
  list-style: none; margin: 0; padding: 0;
}
.stones li { position: absolute; width: 38%; }
.stones li:nth-child(1) { left: 6%; top: 2%; }
.stones li:nth-child(2) { left: 56%; top: 26%; }
.stones li:nth-child(3) { left: 16%; top: 58%; }

.stone {
  display: grid; justify-items: center; gap: 14px;
  text-decoration: none; text-align: center;
}
.stone img {
  width: clamp(88px, 11vw, 132px); aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s var(--ease);
}
.stone:hover img, .stone:focus-visible img { transform: translateY(-6px) scale(1.04); }
.stone strong {
  display: block;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2;
}
.stone small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }

/* ---------- App panels ---------- */

.panel {
  position: relative;
  padding-block: clamp(72px, 12vw, 150px);
  overflow: hidden;
}
.panel .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.panel h2 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
.panel .platforms { margin-top: 14px; font-size: 15px; font-weight: 600; opacity: 0.78; }
.panel .pitch { margin-top: 26px; max-width: 36ch; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }
.panel .tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.panel .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.panel .icon-row { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.panel .icon-row img { width: 64px; border-radius: 23%; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }

/* Radar Junkie: sky and map light */
.panel.rj { background: #d9ecf6; color: #0c2b3b; }
.panel.rj .capsule.solid { background: #0c2b3b; color: #eef7fb; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.45); }
.panel.rj .capsule.solid:hover { background: #18465e; }
.panel.rj .tag { color: #1f6d3c; }
.panel.rj .tag + .tag { color: #0c4f73; }
.rj-device { justify-self: center; width: min(100%, 360px); filter: drop-shadow(0 30px 40px rgba(12, 43, 59, 0.28)); }

/* MoveIt!: move green, skip red on the edge */
.panel.mi { background: #1a7f4b; color: #fff; }
.panel.mi::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  width: clamp(36px, 8vw, 120px);
  background: #e0464c;
  -webkit-mask: url("/img/skip-edge.svg") left / 100% 100% no-repeat;
          mask: url("/img/skip-edge.svg") left / 100% 100% no-repeat;
}
.panel.mi .wrap, .app-hero.mi .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.panel.mi .media, .app-hero.mi .media { position: relative; z-index: 1; padding-right: clamp(24px, 6vw, 96px); }
.panel.mi .capsule.solid { background: #fff; color: #1a7f4b; box-shadow: 0 10px 24px -12px rgba(0, 60, 30, 0.6); }
.panel.mi .capsule.solid:hover { background: #eafff3; }
.panel.mi .platforms { opacity: 1; }
.panel.mi .tag { color: #fff; background: rgba(0, 50, 25, 0.22); }
.mi-video {
  justify-self: center; position: relative; z-index: 1;
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 24px; overflow: hidden;
  background: #0d2a1c;
  box-shadow: 0 40px 60px -28px rgba(0, 0, 0, 0.55);
}
.mi-video video, .mi-video img { width: 100%; height: 100%; object-fit: cover; }
.vid-toggle {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.45); color: #fff;
  transition: background-color 0.3s var(--ease);
}
.vid-toggle:hover { background: rgba(0, 0, 0, 0.65); }
.vid-toggle svg { width: 16px; height: 16px; }
.vid-toggle .i-play, .vid-toggle.paused .i-pause { display: none; }
.vid-toggle.paused .i-play { display: inline; }

/* LiveLineup: Hockey: rink slate, bench blue */
.panel.ll { background: #0d1117; color: #eef2f7; }
.panel.ll h2 span { color: #4aa8ff; }
.panel.ll .capsule.solid { background: #4aa8ff; color: #06121f; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.7); }
.panel.ll .capsule.solid:hover { background: #79bfff; }
.panel.ll .tag { color: #9fd0ff; }
.ll-shots { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1 / 1.18; }
.ll-shots img {
  position: absolute; width: 62%;
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 36px 60px -24px rgba(0, 0, 0, 0.9);
}
.ll-shots img:first-child { left: 0; top: 8%; }
.ll-shots img:last-child { right: 0; top: 0; transform: translateY(-4%); }

/* ---------- Promises ---------- */

.promises { padding-block: clamp(96px, 14vw, 180px); }
.promises h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); max-width: 16ch; }
.promises ul {
  list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 96px);
}
.promises li { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.promises li strong {
  display: block;
  font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.015em; line-height: 1.2;
}
.promises li p { margin-top: 10px; color: var(--ink-2); max-width: 44ch; }

/* ---------- Contact ---------- */

.contact { padding-block: 0 clamp(96px, 14vw, 170px); }
.contact h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
.contact p { margin-top: 20px; color: var(--ink-2); max-width: 46ch; font-size: 19px; }
.contact .mail {
  display: inline-block; margin-top: 30px;
  font-family: var(--display); font-weight: 600; font-size: clamp(18px, 3.2vw, 38px); letter-spacing: -0.02em;
  color: var(--rain); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease);
  overflow-wrap: anywhere;
}
.contact .mail:hover { background-size: 100% 2px; }

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

.site-foot { border-top: 1px solid var(--line); background: var(--water-0); padding-block: 48px 56px; font-size: 15px; color: var(--ink-3); }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot h3 { font: 600 15px/1.3 var(--body); letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: var(--ink-2); }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .legal p + p { margin-top: 8px; }

/* ---------- App page ---------- */

.app-hero { padding-block: clamp(56px, 9vw, 110px) clamp(64px, 10vw, 130px); }
.app-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.app-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.app-hero .icon { width: 96px; border-radius: 23%; margin-bottom: 30px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.55); }
.app-hero .pitch { margin-top: 24px; max-width: 34ch; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; }
.app-hero .tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.app-hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.app-hero.mi { background: #1a7f4b; color: #fff; position: relative; overflow: hidden; }
.app-hero.mi::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: clamp(36px, 8vw, 120px); background: #e0464c;
  -webkit-mask: url("/img/skip-edge.svg") left / 100% 100% no-repeat; mask: url("/img/skip-edge.svg") left / 100% 100% no-repeat;
}
.app-hero.mi .capsule.solid { background: #fff; color: #1a7f4b; }
.app-hero.mi .tag { color: #fff; background: rgba(0, 50, 25, 0.22); }
.app-hero.ll { background: #0d1117; color: #eef2f7; }
.app-hero.ll h1 span { color: #4aa8ff; }
.app-hero.ll .capsule.solid { background: #4aa8ff; color: #06121f; }
.app-hero.ll .tag { color: #9fd0ff; }

.features { padding-block: clamp(80px, 12vw, 150px); }
.features > .wrap > h2 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); max-width: 20ch; }
.features .intro { margin-top: 18px; color: var(--ink-2); max-width: 56ch; font-size: 19px; }
.feature-list {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px);
}
.feature-list li { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.feature-list h3 { font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.feature-list p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; }

.facts { padding-block: 0 clamp(80px, 12vw, 150px); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.facts dl > div { padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; line-height: 1.4; }
.facts .more { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }

.shots-row { padding-block: 0 clamp(80px, 12vw, 150px); }
.shots-row .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.shots-row figure { margin: 0; }
.shots-row img { border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 50px -26px rgba(0, 0, 0, 0.9); }
.shots-row figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.shots-row figure:nth-child(2) { margin-top: 48px; }

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

.doc { padding-block: clamp(56px, 9vw, 110px) clamp(80px, 12vw, 140px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.doc .doc-icon { display: block; width: 64px; border-radius: 23%; margin-bottom: 26px; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6); }
.doc .updated a { color: var(--ink-2); }
.doc .updated { margin-top: 16px; color: var(--ink-3); font-size: 15px; }
.doc .summary {
  margin-top: 36px; padding: 26px 28px;
  border-radius: 22px; background: var(--water-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.doc .summary p { font-size: 19px; line-height: 1.55; }
.doc h2 { margin-top: 56px; font-size: clamp(21px, 2.3vw, 25px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.doc h3 { margin-top: 34px; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.doc p, .doc ul { margin-top: 14px; color: var(--ink-2); max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--rain-deep); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--rain); }
.doc .faq details { border-top: 1px solid var(--line); }
.doc .faq details:last-child { border-bottom: 1px solid var(--line); }
.doc .faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0;
  font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: -0.005em; line-height: 1.4; color: var(--ink);
}
.doc .faq summary::-webkit-details-marker { display: none; }
.doc .faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--rain); border-bottom: 2px solid var(--rain);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.4s var(--ease);
}
.doc .faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.doc .faq details > div { padding-bottom: 22px; }
.doc .faq details > div > p:first-child { margin-top: 0; }
.doc .mailbox {
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 28px; border-radius: 22px; background: var(--water-2); box-shadow: inset 0 0 0 1px var(--line);
}
.doc .mailbox p { margin: 0; color: var(--ink); font-size: 18px; }

/* ---------- 404 ---------- */

.lost { min-height: 70svh; display: grid; align-items: center; padding-block: 80px; }
.lost h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.lost p { margin-top: 20px; color: var(--ink-2); font-size: 19px; max-width: 40ch; }
.lost .actions { margin-top: 32px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .pond { min-height: 0; }
  .pond h1 { font-size: clamp(1.6rem, 8.2vw, 3.5rem); }
  .pond .wrap, .panel .wrap, .app-hero .wrap { grid-template-columns: 1fr; }
  .stones { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stones li { position: static; width: auto; }
  .stones li:nth-child(2) { transform: translateY(36px); }
  .stones li:nth-child(3) { transform: translateY(8px); }
  .stones { padding-bottom: 36px; }
  .stone img { width: clamp(72px, 21vw, 112px); }
  .stone strong { font-size: 13px; letter-spacing: 0; }
  .stone small { font-size: 12.5px; line-height: 1.3; }
  .panel .media { order: 2; }
  .rj-device { width: min(72%, 280px); }
  .panel.mi .wrap, .app-hero.mi .wrap { grid-template-columns: 1fr; }
  .panel.mi .media, .app-hero.mi .media { padding-right: clamp(44px, 11vw, 64px); }
  .ll-shots { width: min(100%, 380px); }
  .site-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .legal { grid-column: 1 / -1; }
  .facts dl { grid-template-columns: 1fr; gap: 24px; }
  .shots-row .wrap { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; width: 100%; padding-inline: var(--gutter); }
  .shots-row figure { scroll-snap-align: center; }
  .shots-row figure:nth-child(2) { margin-top: 0; }
}

@media (max-width: 640px) {
  .promises ul, .feature-list { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .panel .pitch, .app-hero .pitch { font-size: 19px; }
  .ll-shots { aspect-ratio: 1 / 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
