/* Roblox Ball — site styles
   Palette mirrors Theme.swift so the site and the game look like one thing. */

:root {
  --sky:        #70c2fa;
  --sky-deep:   #3387e0;
  --grass:      #6bc747;
  --grass-deep: #4d9e33;
  --dirt:       #8c6140;
  --red:        #f2453d;
  --red-deep:   #b3231f;
  --star:       #ffd129;
  --star-deep:  #e69a0d;

  --ink:        #16202e;
  --ink-soft:   #46566b;
  --ink-faint:  #7c8b9e;
  --panel:      #ffffff;
  --page:       #f2f7fc;
  --line:       #dde7f1;

  --radius:     18px;
  --radius-lg:  26px;
  --shadow:     0 10px 30px rgba(22, 32, 46, .10);
  --shadow-lift:0 18px 44px rgba(22, 32, 46, .18);

  --display: "Avenir Next Condensed", "Helvetica Neue Condensed", "Arial Narrow",
             -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: #1f6fd0; text-underline-offset: 2px; }
a:hover { color: var(--red-deep); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- top bar */

.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700; font-size: 22px; letter-spacing: .3px;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bar nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 15px; font-weight: 600;
  padding: 7px 11px; border-radius: 999px;
}
.bar nav a:hover { background: #eaf2fa; color: var(--ink); }
.bar nav a[aria-current="page"] { background: #e3eefa; color: #1f6fd0; }
.lang {
  margin-left: 6px; padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 14px; font-weight: 700;
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 74px 0 0;
  background: linear-gradient(180deg, var(--sky) 0%, #9fd6fb 62%, #c7e7fb 100%);
  overflow: hidden;
}
.hero::after {                    /* the grass hill, like the app icon */
  content: "";
  position: absolute; left: -8%; right: -8%; bottom: -110px;
  height: 240px; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, var(--grass), var(--grass-deep));
}
.cloud {
  position: absolute; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  filter: blur(.2px);
  pointer-events: none;
}
.cloud.a { width: 190px; height: 62px; top: 96px;  left: 4%;  }
.cloud.b { width: 260px; height: 82px; top: 168px; right: 6%; }
.cloud.c { width: 130px; height: 46px; top: 260px; left: 26%; opacity: .75; }

.hero-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 46px; align-items: center;
  padding-bottom: 78px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 78px);
  line-height: .96; letter-spacing: -.5px;
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 4px 0 rgba(20, 60, 100, .28);
}
.hero .tagline {
  font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 600; color: #10405f;
  margin: 0 0 10px;
}
.hero .blurb { color: #16506f; margin: 0 0 26px; max-width: 46ch; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.badges li {
  background: rgba(255, 255, 255, .82);
  color: #10405f;
  font-size: 14px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px;
}

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 5px solid #fff;
}
.hero-icon {
  position: absolute; bottom: -26px; left: -26px;
  width: 104px; height: 104px;
  border-radius: 24px;
  border: 5px solid #fff;
  box-shadow: var(--shadow-lift);
}

/* ---------------------------------------------------------------- buttons */

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display);
  font-size: 21px; font-weight: 700; letter-spacing: .3px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 6px 0 #8f1a17, 0 12px 22px rgba(143, 26, 23, .28);
}
.btn-ghost {
  background: rgba(255, 255, 255, .9);
  color: #10405f;
  box-shadow: 0 6px 0 rgba(16, 64, 95, .18);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #8f1a17; }

/* --------------------------------------------------------------- sections */

section { padding: 76px 0; }
section.tint { background: #fff; }

.eyebrow {
  font-family: var(--display);
  font-size: 15px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 8px;
}
h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.05; letter-spacing: -.2px;
  margin: 0 0 14px;
}
.lede { color: var(--ink-soft); font-size: 19px; max-width: 62ch; margin: 0 0 34px; }

/* stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin: 0; padding: 0; list-style: none;
}
.stats li {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 18px;
  text-align: center; box-shadow: var(--shadow);
}
.stats b {
  display: block;
  font-family: var(--display); font-size: 40px; line-height: 1;
  color: var(--sky-deep); margin-bottom: 4px;
}
.stats span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .glyph {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 14px;
  background: #eaf4ff;
}
.card h3 {
  font-family: var(--display); font-size: 24px;
  margin: 0 0 7px; letter-spacing: .2px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* screenshot rail */
.rail {
  display: flex; gap: 18px;
  overflow-x: auto;
  padding: 6px 22px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rail figure {
  flex: 0 0 min(660px, 82vw);
  margin: 0; scroll-snap-align: center;
}
.rail img {
  border-radius: var(--radius);
  border: 4px solid #fff;
  box-shadow: var(--shadow-lift);
}
.rail figcaption {
  font-size: 14px; font-weight: 600; color: var(--ink-faint);
  padding-top: 10px; text-align: center;
}

/* privacy call-out */
.callout {
  background: linear-gradient(180deg, #f6fcf3, #eaf7e4);
  border: 1px solid #cfe9c2;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.callout h2 { margin-top: 0; }
.ticks { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 30px; }
.ticks li { padding: 5px 0 5px 28px; position: relative; break-inside: avoid; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 5px;
  color: var(--grass-deep); font-weight: 800;
}

/* ------------------------------------------------------------ legal pages */

.page-head {
  background: linear-gradient(180deg, var(--sky), #b6dffb);
  padding: 54px 0 46px;
  border-bottom: 1px solid #a8d3f0;
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.4vw, 52px);
  margin: 0 0 8px; color: #fff;
  text-shadow: 0 3px 0 rgba(20, 60, 100, .25);
}
.page-head p { margin: 0; color: #10405f; font-weight: 600; }

.doc { padding: 52px 0 84px; }
.doc h2 {
  font-size: 27px; margin: 40px 0 10px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc h3 { font-family: var(--display); font-size: 21px; margin: 24px 0 6px; }
.doc p, .doc li { color: #2b3a4d; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .note {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--star);
  border-radius: 12px; padding: 16px 18px; margin: 22px 0;
  font-size: 16px;
}
.toc {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 36px;
}
.toc strong { font-family: var(--display); font-size: 18px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 26px; }
.toc li { margin: 3px 0; }

/* ----------------------------------------------------------------- footer */

footer {
  background: #16202e; color: #b9c6d6;
  padding: 46px 0 38px;
  font-size: 15px;
}
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; color: #fff; }
footer h4 {
  font-family: var(--display); font-size: 17px; letter-spacing: 1.4px;
  text-transform: uppercase; color: #6f8299;
  margin: 0 0 12px;
}
footer ul { margin: 0; padding: 0; list-style: none; }
footer li { margin: 7px 0; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot-brand span { font-family: var(--display); font-size: 21px; color: #fff; }
.legal-note { color: #7f8ea1; font-size: 13.5px; max-width: 42ch; margin: 0; }
.foot-bottom {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid #26323f;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between;
  color: #7f8ea1; font-size: 13.5px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 34px; padding-bottom: 64px; }
  .hero { padding-top: 46px; }
  .hero-icon { width: 78px; height: 78px; bottom: -20px; left: -12px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  section { padding: 58px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .cards, .stats { grid-template-columns: 1fr; }
  .ticks, .toc ol { columns: 1; }
  .foot-in { grid-template-columns: 1fr; }
  .btn { font-size: 19px; padding: 13px 22px; }
  .bar nav a { padding: 6px 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
