/* Baby Lanes website. Same look as the Lingo site (lingo.anode.solutions), in the
   game's warm colors. Plain CSS and a self-hosted font on purpose: the site loads
   nothing from other servers, so it tracks visitors as little as the app does. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --background: oklch(0.972 0.008 85);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.985 0.006 85);
  --ink: oklch(0.2 0.02 60);
  --ink-soft: oklch(0.5 0.02 60);
  --border: oklch(0.905 0.012 80);
  --accent: oklch(0.5 0.17 265); /* pot blue */
  --tint: oklch(0.92 0.1 95); /* the icon's yellow, softened */
  --tint-soft: oklch(0.955 0.05 95);
  --radius-card: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* The soft glows reach past their box. Cut them at the page edge, so a narrow
   phone never scrolls sideways. */
main {
  overflow-x: clip;
}

/* ---------- Layout ---------- */

.wrap {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1.5rem;
}
.wrap.narrow {
  max-width: 48rem;
}

.section {
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.center {
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.h2 {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 2.25rem;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .h2 {
    font-size: 3rem;
  }
}

.soft {
  color: var(--ink-soft);
}

.lead {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--ink-soft);
  text-wrap: balance;
}
@media (min-width: 768px) {
  .lead {
    font-size: 1.125rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  z-index: -1;
  background: linear-gradient(180deg, var(--tint) 0%, var(--tint-soft) 40%, var(--background) 100%);
}
.hero .wrap {
  padding-top: 5rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .hero .wrap {
    padding-top: 7rem;
  }
}
.hero h1 {
  margin: 0 auto;
  max-width: 48rem;
  font-size: 3rem;
  line-height: 1.05;
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.glow {
  position: relative;
  display: flex;
  justify-content: center;
}
.glow::before {
  content: "";
  position: absolute;
  inset: -2rem;
  border-radius: 3rem;
  background: oklch(0.92 0.1 95 / 0.45);
  filter: blur(40px);
  z-index: -1;
}
/* In a grid column the glow hugs the device, not the whole column. */
.split .glow {
  justify-self: center;
}
.hero .glow {
  margin: 4rem auto 0;
  max-width: 28rem;
}

/* ---------- Buttons ---------- */

.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  color: var(--background);
  transition: opacity 0.15s;
}
a.store:hover {
  opacity: 0.9;
}
.store svg {
  width: 1rem;
  height: 1rem;
}
.store.light {
  background: var(--background);
  color: var(--ink);
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.5rem;
}
.card.big {
  padding: 2rem;
}
.card.tinted {
  background: linear-gradient(135deg, var(--tint), var(--tint-soft));
}
.card.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--background);
}
.card.dark p {
  color: oklch(1 0 0 / 0.6);
}
.card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}
.card.big h3 {
  font-size: 1.5rem;
}
@media (min-width: 768px) {
  .card.big h3 {
    font-size: 1.875rem;
  }
}
.card h3 + p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.card.big h3 + p {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 1rem;
}
.card .shot {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.card.big .shot {
  margin-top: 2rem;
}

.icon-tile {
  margin: 1.5rem auto 0;
  display: flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: oklch(0.92 0.1 95 / 0.6);
}
.icon-tile svg {
  width: 2.25rem;
  height: 2.25rem;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid + .grid {
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .grid.six {
    grid-template-columns: repeat(6, 1fr);
  }
  .grid.six.two-rows {
    grid-template-rows: auto auto;
  }
  .span-2 {
    grid-column: span 2;
  }
  .span-3 {
    grid-column: span 3;
  }
  .span-4 {
    grid-column: span 4;
  }
  .rows-2 {
    grid-row: span 2;
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Big numbers */
.stats {
  margin: 3.5rem auto 0;
  max-width: 56rem;
  gap: 1.5rem;
}
.stat {
  padding: 2rem;
}
.stat .num {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
@media (min-width: 768px) {
  .stat .num {
    font-size: 3.75rem;
  }
}
.stat .label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Steps */
.step {
  padding: 2rem;
}
.step .n {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}
.step h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
}
.step p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Two columns (approach) */
.split {
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.split .h2 {
  margin: 0;
}
.split .lead {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  text-wrap: pretty;
}

.points {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}
.points li {
  display: flex;
  gap: 1rem;
}
.points .tick {
  margin-top: 0.125rem;
  display: flex;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--background);
}
.points .tick svg {
  width: 0.875rem;
  height: 0.875rem;
}
.points strong {
  display: block;
  font-weight: 500;
}
.points span.soft {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

/* FAQ */
.faq {
  margin-top: 3rem;
  overflow: hidden;
  padding: 0;
}
.faq details + details {
  border-top: 1px solid var(--border);
}
.faq summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq .plus {
  margin-left: 1rem;
  color: var(--ink-soft);
  transition: transform 0.15s;
}
.faq details[open] .plus {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Closing panel */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  background: var(--ink);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--background);
}
@media (min-width: 768px) {
  .cta {
    padding: 7rem 4rem;
  }
}
.cta .app-icon {
  display: block;
  margin: 0 auto 2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 22%;
}
.cta h2 {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 2.25rem;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .cta h2 {
    font-size: 3rem;
  }
}
.cta .shot {
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
}
.cta .actions {
  margin-top: 2.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
}
.footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
@media (min-width: 768px) {
  .footer .wrap {
    flex-direction: row;
  }
}
.footer .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.footer .brand img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 22%;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.footer nav a {
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--ink);
}

/* ---------- Device bezel (same as the Lingo site) ----------
   Drawn here, not baked into the PNGs, so the site shows the very same raw
   captures as the App Store (fastlane screenshots copies them into screens/).
   Everything scales off --dw, the outer width. */

.device {
  --dw: 300px;
  position: relative;
  width: var(--dw);
  flex: none;
  padding: calc(var(--dw) * 0.026);
  border-radius: calc(var(--dw) * 0.161);
  background: linear-gradient(145deg, #2a2e38, #0c0e13);
  box-shadow: 0 30px 55px oklch(0.4 0.05 70 / 0.3), 0 6px 16px oklch(0.4 0.05 70 / 0.22),
    inset 0 0 2px rgba(255, 255, 255, 0.35);
}
.device img {
  display: block;
  width: 100%;
  /* The capture's own ratio (1320x2868). Reserving the box keeps the page
     from moving while the lazy screenshots load. */
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  background: #000;
  border-radius: calc(var(--dw) * 0.135);
}
/* Dynamic Island: the captures are drawn by the game, so the strip is empty. */
.device::before {
  content: "";
  position: absolute;
  top: calc(var(--dw) * 0.067);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--dw) * 0.303);
  height: calc(var(--dw) * 0.058);
  border-radius: 999px;
  background: #000;
  z-index: 1;
}
/* Glass sheen across the front. */
.device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, 0.05) 100%);
}
.device.on-dark {
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 0 2px rgba(255, 255, 255, 0.35);
}

/* Fixed widths with a floor for narrow phones, so the page never scrolls sideways.
   The floors subtract the gutters around each size (page 1.5rem, card padding on top). */
.device.hero {
  --dw: min(290px, calc(100vw - 72px));
}
.device.feature {
  --dw: min(250px, calc(100vw - 110px));
}
.device.mini {
  --dw: min(150px, calc(100vw - 110px));
}
.device.cta {
  --dw: min(230px, calc(100vw - 110px));
}
@media (min-width: 768px) {
  .device.hero {
    --dw: 330px;
  }
  .device.feature {
    --dw: 290px;
  }
  .device.mini {
    --dw: 160px;
  }
  .device.cta {
    --dw: 250px;
  }
}

/* ---------- Policy page ---------- */

.policy .hero .wrap {
  padding-bottom: 2rem;
}
.policy .hero h1 {
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .policy .hero h1 {
    font-size: 3rem;
  }
}
.summary {
  margin-top: 2.5rem;
  text-align: left;
}
.summary .points {
  margin-top: 1rem;
}
.doc {
  padding-bottom: 5rem;
}
.doc h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
  line-height: 1.25;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc p,
.doc ul {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}
.doc ul {
  padding-left: 1.25rem;
}
.doc li + li {
  margin-top: 0.375rem;
}
.doc strong {
  color: var(--ink);
  font-weight: 500;
}
.doc a {
  color: var(--ink);
}
.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.back:hover {
  color: var(--ink);
}

/* ---------- Licenses page ---------- */

.doc h3 {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.35;
}
/* License texts keep their own line breaks, but wrap on narrow phones so the page never scrolls sideways. */
.doc pre.license {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.doc details.license-more {
  margin-top: 1rem;
}
.doc details.license-more summary {
  cursor: pointer;
  font-weight: 500;
}
