:root {
  --primary: rgb(195, 255, 0);
  --bg-inner: rgb(25, 43, 124);
  --bg-outer: rgb(4, 7, 39);
  --text: rgb(255, 255, 255);
  --text-low: rgba(255, 255, 255, 0.6);
  --font-display: "Acme", sans-serif;
  --font-light: "Lato", sans-serif;
  --font-bold: "Lato", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-light);
  font-weight: 300;
  color: var(--text);
  background-color: var(--bg-outer);
  background-image: radial-gradient(circle at 50% 0%, var(--bg-inner), var(--bg-outer) 70%);
  background-attachment: fixed;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
}

/* Header */
header.site {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px 0 50px;
}

header.site img.logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
}

header.site .brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

/* Hero */
.hero {
  text-align: center;
  padding-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .hero h1 { font-size: 2.5rem; line-height: 1.2; }
}

.hero h1 .accent { color: var(--primary); }

.hero p.subtitle {
  max-width: 800px;
  margin: 20px auto 0;
  color: var(--text-low);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .hero p.subtitle { font-size: 1.1rem; line-height: 1.3; }
}

.stores {
  display: flex;
  justify-content: center;
  /* Top-aligned: a badge with a "Coming soon" tag under it is taller than a live one. */
  align-items: flex-start;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* The official badges, as Apple and Google supply them. Sized by height: the two have
   different proportions and are meant to stand equally tall. */
.store-badge img {
  height: 3rem;
  width: auto;
}

/* A badge that links to the store dims a little under the pointer. */
a.store-badge:hover img,
a.store-badge:focus-visible img {
  opacity: 0.85;
}

.store-badge .tag {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--bg-outer);
  background: var(--primary);
  padding: 4px 12px;
  border-radius: 12px;
}

.hero-image {
  margin-top: 24px;
  text-align: center;
}

.hero-image img {
  max-width: 420px;
  width: 90%;
  border-radius: 24px;
}

/* Features */
.features {
  padding-top: 50px;
}

.features h2 {
  text-align: center;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto 50px;
}

@media (max-width: 700px) {
  .features h2 { font-size: 2rem; }
}

.features h2 .accent { color: var(--primary); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px 24px;
}

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 24px;
}

.feature-icon {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-light);
  font-weight: 400;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-low);
  font-size: 1rem;
  line-height: 1.3;
}

/* About */
.about {
  max-width: 800px;
  margin: 100px auto 0;
}

.about h2 {
  text-align: center;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0 0 30px;
}

@media (max-width: 700px) {
  .about h2 { font-size: 2rem; }
}

.about h2 .accent { color: var(--primary); }

.about h3 {
  font-family: var(--font-light);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 40px 0 10px;
}

.about p {
  color: var(--text-low);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.about a {
  color: var(--primary);
  text-decoration: underline;
}

/* Footer */
footer.site {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 150px 0 50px;
  flex-wrap: wrap;
  text-align: center;
}

footer.site a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
}

footer.site a:hover {
  color: var(--primary);
}

footer.site a.button {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-outer);
  background: var(--primary);
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

footer.site a.button:hover {
  color: var(--bg-outer);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(195, 255, 0, 0.35);
}

footer.site .copyright,
.legal .copyright {
  flex-basis: 100%;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-align: center;
}

.legal .copyright {
  margin-top: 60px;
}

/* Legal pages */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

@media (max-width: 700px) {
  .legal { padding: 0 20px 100px; }
}

.legal h1 {
  text-align: center;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.2;
  margin: 50px 0 20px;
  background: linear-gradient(to right, var(--primary), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 700px) {
  .legal h1 { font-size: 2.5rem; margin-top: 20px; }
}

.legal .effective-date {
  text-align: center;
  color: var(--text-low);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.legal .badge {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-outer);
  background: var(--primary);
  border-radius: 999px;
  padding: 4px 14px;
  margin: 0 auto 20px;
  width: fit-content;
}

.legal .intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.legal h2 {
  font-family: var(--font-light);
  font-weight: 400;
  font-size: 1.8rem;
  margin: 45px 0 20px;
}

@media (max-width: 700px) {
  .legal h2 { font-size: 1.5rem; }
}

.legal h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 20px 0 15px;
}

.legal p {
  color: var(--text-low);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 15px;
}

.legal p.contact-email {
  color: var(--text);
  margin-top: 10px;
}

.legal a.back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--text-low);
  font-size: 0.9rem;
}

.legal a.back:hover {
  color: var(--primary);
}

.legal .accent { color: var(--primary); }

.legal p a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.legal p a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* Language picker (filled in by i18n.js) */
.lang-picker {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.legal .lang-picker {
  padding-top: 24px;
}

.lang-select {
  font-family: inherit;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Right-to-left languages */
html[dir="rtl"] .feature-card { text-align: right; }

/* Screens: the app on a phone, one story from the first sentence to its picture */
.screens {
  padding-top: 70px;
  text-align: center;
}

.screens h2 {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto 12px;
}

@media (max-width: 700px) {
  .screens h2 { font-size: 2rem; }
}

.screens h2 .accent { color: var(--primary); }

.screens-subtitle {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-low);
  font-size: 1.1rem;
}

.device-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.device-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.device-switch label {
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-low);
  transition: background 0.15s ease, color 0.15s ease;
}

#device-ios:checked ~ .device-switch label[for="device-ios"],
#device-ipad:checked ~ .device-switch label[for="device-ipad"],
#device-android:checked ~ .device-switch label[for="device-android"],
#device-android-tablet:checked ~ .device-switch label[for="device-android-tablet"] {
  background: var(--primary);
  color: var(--bg-outer);
}

#device-ios:focus-visible ~ .device-switch label[for="device-ios"],
#device-ipad:focus-visible ~ .device-switch label[for="device-ipad"],
#device-android:focus-visible ~ .device-switch label[for="device-android"],
#device-android-tablet:focus-visible ~ .device-switch label[for="device-android-tablet"] {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Only the chosen device's strip is shown. */
.screen-strip { display: none; }
#device-ios:checked ~ .screen-strip-ios,
#device-ipad:checked ~ .screen-strip-ipad,
#device-android:checked ~ .screen-strip-android,
#device-android-tablet:checked ~ .screen-strip-android-tablet {
  display: flex;
}

.screen-strip {
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.screen {
  flex: 0 0 220px;
  margin: 0;
  scroll-snap-align: center;
}

.screen-strip-tablet .screen { flex-basis: 340px; }

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #0b0d1f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: #0b0d1f;
}

/* Corner rounding follows the device: iPhone roundest, Android tablet squarest. */
.screen-strip-ios .screen img { border-radius: 34px; }
.screen-strip-ipad .screen img { border-radius: 26px; border-width: 10px; }
.screen-strip-android .screen img { border-radius: 18px; }
.screen-strip-android-tablet .screen img { border-radius: 16px; border-width: 10px; }

.screen figcaption {
  margin-top: 14px;
  color: var(--text-low);
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 700px) {
  .screen { flex-basis: min(70%, 240px); }
  .screen-strip-tablet .screen { flex-basis: min(85%, 360px); }
  .device-switch label { padding: 8px 14px; font-size: 0.9rem; }
}
