/* Tide & Tongs — landing page */
@font-face {
  font-family: "Luckiest Guy";
  src: url("/assets/fonts/luckiest-guy.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/baloo2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --sky: #4ab8ed;
  --sky-2: #29a9e8;
  --sea: #0a5c8f;
  --deep: #062f52;
  --ink: #0e3a66;
  --sun: #ffd23f;
  --sun-2: #ff9f1c;
  --coral: #ff6b5a;
  --leaf: #52d23a;
  --leaf-2: #239b1c;
  --cream: #fff5de;
  --sand: #f7dfa6;
  --wood: #8a4b14;
  --grape: #9b5cff;
  --radius: 26px;
  --shadow: 0 10px 0 rgba(6, 47, 82, 0.18), 0 18px 40px rgba(6, 47, 82, 0.22);
  --display: "Luckiest Guy", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Baloo 2", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

/* height:auto keeps the intrinsic ratio even when width/height attributes are set. */
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { left: 8px; }

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

/* ---------------------------------------------------------- display text */
h1, h2, h3, .hero-title, .btn, .kicker, .pill b {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.stroke {
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
}

h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  margin: 0 0 10px;
  color: #fff;
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(14, 58, 102, 0.35);
}

/* ---------------------------------------------------------- buttons */
.btn {
  --top: #8bea4e;
  --mid: #3dbb24;
  --dark: #1e7a12;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(var(--top), var(--mid));
  box-shadow: inset 0 -6px 0 var(--dark), 0 6px 0 rgba(14, 58, 102, 0.35);
  -webkit-text-stroke: 0.1em var(--dark);
  paint-order: stroke fill;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s;
}
.btn::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 5px;
  height: 30%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn:active { transform: translateY(3px) scale(0.98); box-shadow: inset 0 -3px 0 var(--dark), 0 2px 0 rgba(14, 58, 102, 0.35); }
.btn-small { padding: 9px 18px 12px; font-size: 17px; }
.btn-orange { --top: #ffd45c; --mid: #ff9f1c; --dark: #b85c00; }

.icon-btn, .lang-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: linear-gradient(#6fd8ff, #1e9be8);
  box-shadow: inset 0 -4px 0 #0b5fa8;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s;
}
.icon-btn:active, .lang-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 22px; height: 22px; fill: #fff; }
.icon-btn .off { display: none; }
.icon-btn[aria-pressed="false"] .on { display: none; }
.icon-btn[aria-pressed="false"] .off { display: block; }
.lang-btn { font-family: var(--display); font-size: 16px; padding-top: 3px; -webkit-text-stroke: 0.08em #0b5fa8; paint-order: stroke fill; }

/* ---------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(10, 92, 143, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(6, 47, 82, 0.3);
  padding-top: 6px;
  padding-bottom: 6px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
}
.nav-brand img { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  text-shadow: 0 2px 0 rgba(14, 58, 102, 0.6);
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.18); }
.nav-tools { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sky);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: -3%; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 47, 82, 0.55) 0%, rgba(6, 47, 82, 0.25) 38%, rgba(6, 47, 82, 0) 60%),
    linear-gradient(0deg, rgba(6, 47, 82, 0.35), rgba(6, 47, 82, 0) 30%);
}
.bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hero-content {
  width: min(620px, 92vw);
  margin-left: max(5vw, 24px);
  padding: 110px 0 120px;
  color: #fff;
}
.hero-logo-wrap { position: relative; width: min(520px, 100%); }
.hero-logo { margin: 0; animation: logoIn 1.1s cubic-bezier(.2, 1.6, .4, 1) both, bob 4s ease-in-out 1.1s infinite; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(6, 47, 82, 0.45)); }
.float-food { position: absolute; width: 74px; filter: drop-shadow(0 8px 10px rgba(6, 47, 82, 0.35)); z-index: 2; }
.float-food.f1 { left: -34px; top: 8%; animation: bob 3.2s ease-in-out infinite, pop 0.8s 0.5s both; }
.float-food.f2 { right: -18px; top: -6%; width: 64px; animation: bob 2.7s ease-in-out 0.4s infinite, pop 0.8s 0.7s both; }
.float-food.f3 { right: 6%; bottom: -8%; width: 70px; animation: bob 3.6s ease-in-out 0.8s infinite, pop 0.8s 0.9s both; }

.kicker {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 7px 16px 5px;
  border-radius: 999px;
  background: var(--coral);
  border: 3px solid var(--ink);
  font-size: 16px;
  box-shadow: 0 4px 0 rgba(14, 58, 102, 0.4);
  animation: rise 0.7s 0.5s both;
}
.hero-title {
  margin: 10px 0 8px;
  font-size: clamp(40px, 6vw, 76px);
  color: var(--sun);
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 rgba(14, 58, 102, 0.45);
  animation: rise 0.7s 0.65s both;
}
.hero-sub {
  margin: 0 0 22px;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  max-width: 540px;
  text-shadow: 0 2px 6px rgba(6, 47, 82, 0.7);
  animation: rise 0.7s 0.8s both;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 0.7s 0.95s both; }
.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 20px 10px 16px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #0b0b0d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}
.store:hover { transform: translateY(-3px) rotate(-1deg); }
.store svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 12px; opacity: 0.85; font-weight: 600; }
.store b { font-size: 21px; font-weight: 700; letter-spacing: 0.01em; }
.store .soon {
  display: none;
  position: absolute;
  right: -10px;
  top: -12px;
  padding: 2px 9px;
  border-radius: 10px;
  background: var(--sun);
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid var(--ink);
  transform: rotate(6deg);
}
.store.is-soon .soon { display: block; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  animation: rise 0.7s 1.1s both;
}
.chips li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  background: rgba(6, 47, 82, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-weight: 800;
  font-size: 15px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chips img { width: 26px; height: 26px; object-fit: contain; }

.gully-fly {
  position: absolute;
  top: 14%;
  left: -140px;
  width: 110px;
  height: 110px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  animation: gully 16s linear 3s infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 70px;
  width: 30px;
  height: 48px;
  margin-left: -15px;
  border: 3px solid #fff;
  border-radius: 20px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 6px;
  height: 10px;
  margin-left: -3px;
  border-radius: 4px;
  background: #fff;
  animation: cue 1.6s ease-in-out infinite;
}

.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 2; }
.waves path { transform-origin: 0 0; }
.waves .w1 { fill: rgba(255, 245, 222, 0.55); animation: wave 9s linear infinite; }
.waves .w2 { fill: var(--cream); animation: wave 6s linear infinite reverse; }

/* ---------------------------------------------------------- marquee */
.marquee {
  background: linear-gradient(var(--sun), var(--sun-2));
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  transform: rotate(-1.5deg);
  margin: -10px -20px 0;
  position: relative;
  z-index: 4;
  box-shadow: 0 8px 0 rgba(14, 58, 102, 0.15);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  -webkit-text-stroke: 0.12em var(--wood);
  paint-order: stroke fill;
  white-space: nowrap;
}
.marquee-item img { width: 48px; height: 58px; object-fit: contain; }

/* ---------------------------------------------------------- sections */
.section { position: relative; padding: 100px max(5vw, 18px); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 42px; }
.section-head p { margin: 0; font-size: 20px; font-weight: 700; color: var(--sea); }

/* ---------------------------------------------------------- demo */
.demo {
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(74, 184, 237, 0.35), transparent 70%),
    var(--cream);
}
.demo-wrap { max-width: 980px; margin: 0 auto; }
.demo-hud { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(14, 58, 102, 0.3);
}
.pill b { font-size: 22px; color: var(--sun); }
.pill img { width: 44px; height: 24px; object-fit: contain; }
.demo-stage {
  position: relative;
  border-radius: 34px;
  border: 5px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(120, 66, 20, 0.16) 0 2px, transparent 2px 96px),
    linear-gradient(180deg, #e2a865 0%, #c98642 100%);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(255, 255, 255, 0.25);
  padding: 34px 20px 30px;
  overflow: hidden;
  min-height: 380px;
}
.demo-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 70px;
  background: linear-gradient(#4ab8ed, #2a8fd0);
  border-bottom: 5px solid rgba(14, 58, 102, 0.5);
}
.demo-crab { position: absolute; left: 10px; top: 4px; width: 96px; height: 96px; object-fit: contain; z-index: 3; animation: bob 2.4s ease-in-out infinite; }
.demo-crab.hop { animation: hop 0.5s ease-out; }
.demo-say {
  position: absolute;
  left: 104px;
  top: 14px;
  z-index: 4;
  padding: 6px 14px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  font-family: var(--display);
  font-size: 18px;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: left center;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(.2, 1.6, .4, 1);
}
.demo-say.show { opacity: 1; transform: scale(1); }
.demo-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 30px 18px;
  max-width: 860px;
  margin: 70px auto 0;
}
.grill {
  position: relative;
  aspect-ratio: 480 / 330;
  background: url("/assets/ui/grill.webp") center 78% / 100% auto no-repeat;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 40%;
  transition: filter 0.2s, transform 0.2s;
}
.grill::after {
  content: "";
  position: absolute;
  inset: 12% 6% 6%;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(124, 255, 178, 0);
  transition: box-shadow 0.2s;
  pointer-events: none;
}
.grill.target::after { box-shadow: 0 0 22px 8px rgba(124, 255, 178, 0.85); }
.grill.shake { animation: wobble 0.35s ease; }
.slot {
  position: absolute;
  bottom: 30%;
  width: 34%;
  aspect-ratio: 240 / 288;
  transform: translateX(-50%);
  pointer-events: none;
}
.slot:nth-child(1) { left: 23%; }
.slot:nth-child(2) { left: 50%; }
.slot:nth-child(3) { left: 77%; }
.food {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s cubic-bezier(.2, 1.6, .4, 1), filter 0.2s;
  animation: breathe 2.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.food.selected { transform: translateY(-26%) scale(1.18); filter: drop-shadow(0 18px 8px rgba(0, 0, 0, 0.25)) brightness(1.08); animation: none; }
.food.land { animation: land 0.35s ease-out; }
.food.pair { filter: drop-shadow(0 0 12px rgba(255, 214, 64, 0.95)) drop-shadow(0 6px 4px rgba(0, 0, 0, 0.3)); animation: pairHop 0.9s ease-in-out infinite; }
.food.matched { animation: matched 0.45s ease-in forwards; }
.demo-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.praise {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 6;
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 60px);
  color: #fff;
  -webkit-text-stroke: 0.12em #7a2e00;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(122, 46, 0, 0.4);
  pointer-events: none;
  animation: praise 1.2s ease-out forwards;
  white-space: nowrap;
}
.praise::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  z-index: -1;
  background: repeating-conic-gradient(rgba(255, 236, 140, 0.75) 0 10deg, transparent 10deg 26deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%);
  mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 3s linear infinite;
}
.demo-win {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px;
  background: rgba(255, 245, 222, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.4s ease both;
}
.demo-win[hidden] { display: none; }
.demo-win img { width: 140px; height: 140px; object-fit: contain; animation: bob 1s ease-in-out infinite; }
.demo-win h3 { margin: 0; font-size: clamp(28px, 4vw, 42px); color: var(--leaf); -webkit-text-stroke: 0.1em var(--ink); paint-order: stroke fill; }
.demo-win p { margin: 0 0 10px; font-weight: 700; }
.demo-win-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------------------------------------------------------- features */
.features { background: linear-gradient(180deg, var(--cream), #e6f7ff 60%, #d2f0ff); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}
.card {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}
.card img { width: 96px; height: 96px; object-fit: contain; margin: -54px 0 6px; filter: drop-shadow(0 8px 8px rgba(6, 47, 82, 0.3)); transition: transform 0.3s cubic-bezier(.2, 1.6, .4, 1); }
.card:hover img { transform: translateY(-8px) rotate(-6deg) scale(1.08); }
.card h3 { margin: 0 0 6px; font-size: 26px; color: var(--sea); }
.card p { margin: 0; font-weight: 600; }
.cards .card { margin-top: 40px; }

/* ---------------------------------------------------------- mechanics */
.mechanics {
  background:
    radial-gradient(800px 300px at 20% 10%, rgba(255, 255, 255, 0.25), transparent),
    linear-gradient(180deg, #1597b8, #0a5c8f);
  color: #fff;
}
.mechanics .section-head h2 { -webkit-text-stroke-color: var(--deep); }
.mech-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.mech {
  text-align: center;
  padding: 20px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.25s, background 0.25s;
}
.mech:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.2); }
.mech img { height: 96px; width: auto; max-width: 100%; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3)); }
.mech h3 { margin: 0 0 4px; font-size: 21px; color: var(--sun); -webkit-text-stroke: 0.1em var(--deep); paint-order: stroke fill; }
.mech p { margin: 0; font-size: 15px; font-weight: 600; }

/* ---------------------------------------------------------- screens */
.screens { background: linear-gradient(180deg, #0a5c8f, #0e3a66); overflow: hidden; }
.screens h2 { -webkit-text-stroke-color: var(--deep); }
.carousel { position: relative; max-width: 1280px; margin: 0 auto; }
.car-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 6vw 40px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.phone {
  flex: 0 0 auto;
  width: min(270px, 68vw);
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
  transition: transform 0.4s;
}
.phone-screen {
  position: relative;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b2f38, #0b0c10);
  box-shadow: 0 0 0 3px #4a4f5c, 0 24px 50px rgba(0, 0, 0, 0.5);
}
/* Screenshots already contain the device status bar and camera cut-out. */
.phone-screen img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: contain; border-radius: 37px; background: #0b0c10; }
.phone figcaption {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  -webkit-text-stroke: 0.1em var(--deep);
  paint-order: stroke fill;
}
.phone:hover { transform: translateY(-8px) rotate(-1.5deg); }
.car-btn {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: linear-gradient(#ffd45c, #ff9f1c);
  box-shadow: inset 0 -5px 0 #b85c00, 0 5px 0 rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  font-weight: 800;
}
.car-btn.prev { left: 8px; }
.car-btn.next { right: 8px; }

/* ---------------------------------------------------------- crew */
.crew {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  background: linear-gradient(180deg, #0e3a66 0, #0e3a66 50%, var(--cream) 50%);
}
.crew-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px 20px 12px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffe066, #ff9f1c);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  max-width: 620px;
  justify-self: center;
}
.crew-card.alt { background: linear-gradient(135deg, #b8f2ff, #4cc9f0); }
.crew-card img { width: 170px; height: 170px; object-fit: contain; flex: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.25)); }
.crew-card h3 { margin: 0 0 6px; font-size: 30px; color: #fff; -webkit-text-stroke: 0.1em var(--ink); paint-order: stroke fill; }
.crew-card p { margin: 0; font-weight: 700; }
.bob { animation: bob 2.6s ease-in-out infinite; }
.bob.slow { animation-duration: 3.4s; }

/* ---------------------------------------------------------- buddies */
.buddies { background: var(--cream); }
.buddies h2, .beaches h2 { color: var(--sun); }
.buddy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}
.buddy {
  position: relative;
  padding: 12px 8px 10px;
  border-radius: 22px;
  background: #fff;
  border: 3px solid #f0c27a;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2, 1.6, .4, 1), border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 5px 0 rgba(138, 75, 20, 0.15);
}
.buddy img { width: 84%; margin: 0 auto; aspect-ratio: 240 / 288; object-fit: contain; transition: transform 0.3s cubic-bezier(.2, 1.6, .4, 1); }
.buddy span { display: block; margin-top: 4px; font-weight: 800; font-size: 14px; color: var(--wood); line-height: 1.15; }
.buddy:hover { transform: translateY(-6px) rotate(-2deg); border-color: var(--sun-2); box-shadow: 0 12px 0 rgba(138, 75, 20, 0.15); }
.buddy:hover img { transform: scale(1.1) rotate(4deg); }
.buddy.boing img { animation: boing 0.6s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------------------------------------------------------- beaches */
.beaches { background: linear-gradient(180deg, var(--cream), #ffe7c2); }
.beach-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.beach {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 14;
  transition: transform 0.3s;
}
.beach img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.beach:hover { transform: translateY(-8px) rotate(1deg); }
.beach:hover img { transform: scale(1.08); }
.beach figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 14px;
  background: linear-gradient(transparent, rgba(6, 47, 82, 0.85));
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  text-align: center;
  -webkit-text-stroke: 0.08em var(--deep);
  paint-order: stroke fill;
}
.beach .num {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  border: 3px solid var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

/* ---------------------------------------------------------- cta */
.cta {
  position: relative;
  padding: 140px max(5vw, 18px);
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6, 47, 82, 0.35), rgba(6, 47, 82, 0.7)); }
.cta-inner { max-width: 720px; margin: 0 auto; display: grid; justify-items: center; gap: 10px; }
.cta-icon { width: 140px; height: 140px; border-radius: 32px; border: 4px solid #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); animation: bob 3s ease-in-out infinite; }
.cta p { margin: 0 0 12px; font-size: 20px; font-weight: 700; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.cta .stores { justify-content: center; animation: none; }

/* ---------------------------------------------------------- footer */
.footer { background: var(--deep); color: #cfe9ff; padding: 40px max(5vw, 18px) calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; justify-content: space-between; }
.footer-brand img { width: 170px; height: auto; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; }
.footer-links a { color: #fff; }
.copy { margin: 0; width: 100%; font-size: 14px; opacity: 0.75; }

/* ---------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2, 1.3, .4, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- keyframes */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes logoIn { 0% { transform: scale(0.3) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes pop { 0% { opacity: 0; scale: 0.2; } 100% { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }
@keyframes gully {
  0% { transform: translate(0, 0) scaleX(-1); }
  45% { transform: translate(60vw, 40px) scaleX(-1) rotate(4deg); }
  100% { transform: translate(calc(100vw + 280px), -30px) scaleX(-1); }
}
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(0.98, 1.03); } }
@keyframes land { 0% { transform: scale(1.25, 0.8); } 50% { transform: scale(0.92, 1.08); } 100% { transform: none; } }
@keyframes pairHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9%); } 60% { transform: translateY(0) scale(1.06, 0.95); } }
@keyframes matched { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-30%) scale(1.25); } 100% { transform: translateY(-10%) scale(0); opacity: 0; } }
@keyframes praise {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-8deg); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.15) rotate(-3deg); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
  80% { opacity: 1; }
  100% { transform: translate(-50%, -90%) scale(1) rotate(-3deg); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 60% { transform: rotate(2deg); } }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-22px) scale(1.08); } 100% { transform: translateY(0); } }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(1.35, 0.75); } 55% { transform: scale(0.85, 1.2); } 80% { transform: scale(1.06, 0.95); } 100% { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  /* Mobile hero: copy on the sky, the tall key art anchored below it. */
  .hero { display: block; min-height: 0; background: linear-gradient(180deg, #2f9edb 0%, #6cc6f0 55%, #9fdcf7 100%); }
  .hero-bg { inset: auto 0 0 0; }
  .hero-bg img { width: 100%; height: auto; object-fit: initial; }
  .hero-shade { background: linear-gradient(180deg, rgba(6, 47, 82, 0.4) 0%, rgba(6, 47, 82, 0) 45%); }
  .hero-content { margin: 0 auto; padding: 86px 0 calc(100vw * 1.22); text-align: center; }
  .hero-logo-wrap { margin: 0 auto; width: min(380px, 86vw); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .stores, .chips { justify-content: center; }
  .scroll-cue { display: none; }
  .float-food { width: 54px; }
  .float-food.f1 { left: -10px; }
  .float-food.f2 { right: -4px; width: 50px; }
  .nav-brand span { display: none; }
  .demo-stage { padding: 30px 10px 22px; }
  .demo-board { gap: 18px 8px; }
  .demo-crab { width: 76px; }
  .demo-say { left: 84px; font-size: 15px; }
  .crew-card { flex-direction: column; text-align: center; padding: 20px; }
  .crew-card img { width: 150px; }
  .section { padding: 80px 16px; }
  .car-btn { display: none; }
}
@media (max-width: 420px) {
  .store { min-width: 0; flex: 1 1 150px; padding: 9px 12px; }
  .store b { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .gully-fly { display: none; }
  .reveal { opacity: 1; transform: none; }
}
