:root {
  --bg: #eaf8ff;
  --surface: #ffffff;
  --ink: #12324a;
  --ink-soft: #4a6b82;
  --aqua: #22b8db;
  --deep: #0b6e99;
  --plastic: #ff4f79;
  --plastic-dark: #d6335c;
  --pink: #ff5d8f;
  --sun: #ffc93c;
  --mint: #34d399;
  --grape: #9b7bff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(11, 110, 153, 0.15);
  --font: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--deep); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark { width: 30px; height: 30px; color: var(--plastic); }

.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--deep); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 72px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sun);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.store-btn {
  display: flex;
  flex-direction: column;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  min-width: 170px;
  transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn[aria-disabled="true"] { cursor: default; }
.store-small { font-size: 0.75rem; opacity: 0.8; }
.store-big { font-size: 1.2rem; font-weight: 600; }

/* The toy: a plastic case around the browser demo (the real game, see /play/) */
.toy {
  justify-self: center;
  width: min(100%, 360px);
  padding: 18px 18px 22px;
  border-radius: 46px 46px 60px 60px;
  background: linear-gradient(160deg, var(--plastic), var(--plastic-dark));
  box-shadow: var(--shadow), inset 0 4px 0 rgba(255, 255, 255, 0.35), inset 0 -6px 0 rgba(0, 0, 0, 0.15);
}

.toy-case {
  position: relative;
  aspect-ratio: 720 / 979;   /* just the tank: see WebDemo.VIEW in the game */
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #8fe3f7 0%, var(--aqua) 45%, var(--deep) 100%);
}

/* glass rim and plastic glare, drawn over the game */
.toy-case::before,
.toy-case::after { content: ""; position: absolute; pointer-events: none; z-index: 1; }
.toy-case::before { inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5), inset 0 10px 30px rgba(255, 255, 255, 0.25); }
.toy-case::after {
  top: 14%;
  left: 7%;
  width: 16%;
  height: 50%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  transform: rotate(8deg);
}

.toy-case iframe { display: block; width: 100%; height: 100%; border: 0; background: #0b1530; }

.demo-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.demo-play {
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--plastic);
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 5px 0 var(--plastic-dark);
  transition: transform 0.15s ease;
}
.demo-start:hover .demo-play { transform: translateY(-2px); }
.demo-start:focus-visible { outline: 3px solid #fff; outline-offset: -8px; border-radius: 30px; }

.toy-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 8px;
}

.toy-label { color: rgba(255, 255, 255, 0.9); font-weight: 700; letter-spacing: 0.12em; font-size: 0.8rem; }

.pump {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.pump-cap {
  display: block;
  width: 52px;
  height: 52px;
  margin: 6px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c9, var(--sun) 55%, #e0a400);
  box-shadow: 0 6px 0 #b98400;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.pump.is-down .pump-cap { transform: translateY(5px); box-shadow: 0 1px 0 #b98400; }
.pump:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.toy-hint {
  margin: 14px 4px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

kbd {
  font-family: inherit;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
}

/* Sections */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 16px;
}

.section-tint {
  max-width: none;
  background: var(--surface);
}
.section-tint > * { max-width: 1088px; margin-left: auto; margin-right: auto; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feature p { margin: 0; color: var(--ink-soft); }

.feature-dot {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 8px solid var(--c);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 56px 24px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--plastic);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.faq { display: grid; gap: 12px; margin-top: 24px; max-width: 760px; }
.faq details {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

.mail-link { font-size: 1.2rem; font-weight: 600; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .updated { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 8px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-nav { display: none; }
  .features { grid-template-columns: 1fr; }
  .store-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-btn, .demo-play, .pump-cap { transition: none; }
}
