@font-face {
  font-family: "Bowlby One";
  src: url("/assets/fonts/BowlbyOne-Regular.ttf") format("truetype");
  font-display: swap;
}

/* The app's cobalt look: one color everywhere, see-through cards, off-white for what you tap. */
:root {
  --cobalt: #4273dd;
  --cobalt-deep: #244285;
  --title-tint: #bdebf2;
  --card: #f4f1ea;
  --ink: #1e2f5a;
  --ink-soft: #4b5468;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --glass-stroke: rgba(255, 255, 255, 0.18);
  --radius: 26px;
  --gutter: 16px;
  --max: 1080px;
  --display: "Bowlby One", "Arial Black", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  background: var(--cobalt);
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Every headline is set in Bowlby One, in caps, like the app's titles. */
.brand, h1, h2, .steps .num { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }

/* Header */

.site-header { padding: 16px 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--glass-strong); }

/* Hero: the welcome screen, with the koala in its halo. */

.hero {
  padding: 8px 0 72px;
  text-align: center;
}
.halo {
  width: min(440px, 84vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 58%, rgba(255, 255, 255, 0.08) 58% 100%);
}
.halo .koala, .halo img { width: 86%; }
.halo.small { width: min(300px, 70vw); }
.hero h1 {
  font-size: clamp(52px, 13vw, 104px);
  line-height: 1;
  margin: 28px 0 12px;
  color: var(--title-tint);
}
.hero p.lede {
  font-size: clamp(19px, 3.6vw, 23px);
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: 0.95;
}

.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.buttons.start { justify-content: flex-start; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  border: 0;
}
.button.primary { background: var(--card); color: var(--ink); }
.button.primary:hover { background: #fff; }
.button.glass { background: var(--glass); color: #fff; box-shadow: inset 0 0 0 1px var(--glass-stroke); cursor: default; }

/* Sections: left-aligned titles like the app's pages. Each takes one of the app's colors,
   as if you'd swiped sideways: its background, its pale title tint, and its dark ink for what
   sits on off-white. */

.section { padding: 64px 0; background: var(--bg); }
.cobalt { --bg: #4273dd; --title-tint: #bdebf2; --ink: #1e2f5a; }
.emerald { --bg: #12a06a; --title-tint: #d8f79b; --ink: #0b3a27; }
.violet { --bg: #7b4ae2; --title-tint: #f6cbff; --ink: #2a1660; }
.magenta { --bg: #d93a8e; --title-tint: #ffd6ee; --ink: #4e0f31; }
.tangerine { --bg: #f2801f; --title-tint: #fff2b5; --ink: #4a2506; }
.teal { --bg: #0f9ca0; --title-tint: #cbfff4; --ink: #07393b; }
.tomato { --bg: #e8472f; --title-tint: #ffe3a6; --ink: #4a130b; }
/* Plain white, so the colorful screenshots on it don't clash with the section. */
.white { --bg: #ffffff; --title-tint: var(--ink); --ink: #1e2f5a; color: var(--ink); }
.white .shots img { box-shadow: 0 0 0 1px rgba(30, 47, 90, 0.08), 0 6px 14px rgba(30, 47, 90, 0.14); }
.section h2 {
  font-size: clamp(34px, 7.5vw, 54px);
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--title-tint);
}
.section .sub {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 19px;
  opacity: 0.92;
}
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}

.glass-card {
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-stroke);
  border-radius: var(--radius);
  padding: 20px;
}
.glass-card h3 { margin: 0 0 4px; font-size: 18px; }
.glass-card p { margin: 0; opacity: 0.88; }

/* How it works: numbered circles on a line, as in onboarding. */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 520px;
}
.steps li {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: var(--glass-strong);
}
.steps .num {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--ink);
  font-size: 20px;
}
.steps h3 { margin: 8px 0 4px; font-size: 20px; }
.steps p { margin: 0; opacity: 0.88; }
.chips { display: flex; gap: 10px; margin-top: 12px; }
.chips span {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--card);
}
.art { text-align: center; }
.art .caption { margin: 18px 0 0; opacity: 0.9; }

/* Friends: the weekly podium and the lock card. */

.lock-card { display: flex; gap: 16px; align-items: center; max-width: 520px; }
.lock-card img { width: 72px; height: 72px; flex: none; }

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.place { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.place .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
}
.place.first .avatar { width: 68px; height: 68px; font-size: 24px; box-shadow: 0 0 0 4px var(--title-tint); }
.place .name { font-weight: 600; font-size: 15px; }
.place .bar {
  width: 100%;
  border-radius: 18px;
  background: var(--glass);
  display: flex;
  justify-content: center;
  padding-top: 14px;
  font-weight: 700;
  font-size: 15px;
}
.place.first .bar { height: 180px; background: var(--glass-strong); }
.place.second .bar { height: 132px; }
.place.third .bar { height: 104px; }

/* Screenshots */

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px;
  margin: 0 calc(-1 * var(--gutter));
  -webkit-overflow-scrolling: touch;
}
.shots img {
  flex: none;
  width: min(250px, 68vw);
  border-radius: 34px;
  box-shadow: 0 0 0 1px var(--glass-stroke), 0 18px 36px rgba(0, 0, 0, 0.22);
  scroll-snap-align: center;
}

/* Features: like the app's plan features, an off-white icon on a see-through card. */

.features {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-stroke);
  border-radius: 22px;
  padding: 16px;
}
.feature .icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--ink);
}
.feature svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin: 2px 0 2px; font-size: 17px; }
.feature p { margin: 0; font-size: 15px; opacity: 0.85; }

/* Pricing */

.plus-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.plus-title h2 { margin: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fine { margin: 12px 0 0; font-size: 14px; opacity: 0.75; }

/* Privacy promise */

.promise { max-width: 720px; }
.promise p { font-size: 19px; opacity: 0.95; }
.promise a { font-weight: 700; }

/* Footer */

.site-footer {
  background: var(--cobalt-deep);
  padding: 32px 0 40px;
  font-size: 15px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; opacity: 0.9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

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

body.doc { background: var(--card); color: var(--ink); }
body.doc .site-header { background: var(--cobalt); color: #fff; }
.doc main { padding: 40px 0 72px; }
.doc article { max-width: 720px; margin: 0 auto; }
.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--cobalt);
}
.doc .updated { color: var(--ink-soft); margin: 0 0 32px; }
.doc h2 { font-size: 19px; margin: 36px 0 8px; }
.doc h3 { font-size: 16px; margin: 24px 0 6px; }
.doc p, .doc li { color: #2b3242; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--cobalt); font-weight: 600; }
.doc .site-header a { color: #fff; }
.doc .callout {
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.doc details {
  background: #fff;
  border-radius: 18px;
  padding: 14px 18px;
  margin: 10px 0;
}
.doc summary { font-weight: 700; cursor: pointer; }
.doc details p { margin: 10px 0 2px; }
.doc pre.license {
  white-space: pre-wrap;
  font-size: 13px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  color: var(--ink-soft);
}

/* Narrow phones: keep the header on one row. */
@media (max-width: 400px) {
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .nav { gap: 4px; }
  .nav a { padding: 7px 9px; font-size: 14px; }
}
