/* The Euromondo site: one stylesheet for every page and language. The colours are the apps' (the web app's
   tailwind.config.ts and Android's design_tokens.xml); the font is Inter, served from fonts/ (no CDN). */

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter_regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter_semibold.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter_bold.ttf') format('truetype');
}

:root {
  --bg: #1A1A1A;
  --surface: #272727;
  --surface-2: #333333;
  --line: #404040;
  --text: #F0F0F0;
  --text-2: #CCCCCC;
  --muted: #AAAAAA;
  --red: #C40000;
  --red-dark: #9B0000;
  --red-light: #E53333;
  --yellow: #EAB308;
  --green: #3FB950;
  --radius: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Long German words (Datenschutzbeauftragter...) must not widen the page on a phone. */
  overflow-wrap: break-word;
  hyphens: auto;
}

a {
  color: var(--red-light);
  text-underline-offset: 3px;
}

a:hover {
  color: #FF5C5C;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-2);
}

.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

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

.logo:hover {
  color: var(--text);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bar nav > a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.bar nav > a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .bar nav > a.wide {
    display: none;
  }
}

/* Language menu (no JavaScript: <details>) */

.lang {
  position: relative;
}

.lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}

.flag {
  border-radius: 2px;
  flex: none;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

.lang-menu a:hover, .lang-menu a[aria-current] {
  background: var(--surface-2);
}

@media (max-width: 520px) {
  .lang-name {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(196, 0, 0, 0.28), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(234, 179, 8, 0.08), transparent 60%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--red-light);
}

.hero .tag {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
}

.stores img {
  height: 48px;
  width: auto;
  display: block;
}

.soon {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.btn:hover {
  background: var(--red-light);
  color: #fff;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-light);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* Phone frame for the screenshots. A missing screenshot leaves the dark screen with the icon (onerror hides the
   broken image). */

.phone {
  position: relative;
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border: 10px solid #050505;
  border-radius: 40px;
  background: var(--surface) url('img/icon.png') center / 64px no-repeat;
  box-shadow: 0 0 0 1px #3a3a3a, 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero .phone {
  max-width: 320px;
}

/* Sections */

section {
  padding: 64px 0;
}

section.alt {
  background: #202020;
  border-top: 1px solid var(--surface-2);
  border-bottom: 1px solid var(--surface-2);
}

.intro {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.intro p {
  color: var(--text-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.step p {
  color: var(--text-2);
  margin: 0;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Points */

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.point {
  padding: 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}

.point .num {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--yellow);
}

.point h3 {
  margin: 10px 0 4px;
  font-size: 17px;
}

.point p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.rules {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-2);
  text-align: center;
}

@media (max-width: 640px) {
  .points {
    grid-template-columns: 1fr;
  }
}

/* Feature rows: text and a phone, alternating sides */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 28px 0;
}

.feature .phone {
  max-width: 270px;
}

.feature.flip .text {
  order: 2;
}

/* A screen the app draws in landscape (the bracket): the phone on its side, under the text */

.feature.wide {
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}

.feature.wide .text {
  max-width: 640px;
  margin: 0 auto;
}

.feature.wide .phone {
  max-width: 920px;
}

.phone.landscape {
  aspect-ratio: 19.5 / 9;
}

@media (max-width: 520px) {
  .phone.landscape {
    border-width: 6px;
    border-radius: 22px;
  }
}

.feature .text p, .feature .text li {
  color: var(--text-2);
}

.feature .text ul {
  padding-left: 20px;
  margin: 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.15);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature.flip .text {
    order: 0;
  }
}

/* Feature cards */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  flex: 0 1 200px;
  padding: 20px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}

.card .phone {
  max-width: 190px;
  border-width: 7px;
  border-radius: 28px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Smaller features without a screenshot: an icon and a line each */

.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.extra {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}

.extra svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--red-light);
}

.extra h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.extra p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

@media (max-width: 640px) {
  .extras {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .card {
    flex-basis: 100%;
  }
}

/* Free: what you get */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 24px;
}

.plans.single {
  grid-template-columns: 1fr;
  max-width: 460px;
}

.plan {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}

.plan.pro {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red) inset;
}

.plan .price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--text-2);
}

.plan li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.small {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

@media (max-width: 700px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* "Not gambling" note */

.note {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 26px;
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  background: var(--surface);
}

.note h3 {
  font-size: 18px;
}

.note p {
  margin: 0;
  color: var(--text-2);
}

/* Download band */

.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--red-dark), #5a0000);
}

.cta h2 {
  color: #fff;
}

.cta .stores {
  justify-content: center;
  margin-bottom: 0;
}

.cta .btn {
  background: #fff;
  color: var(--red-dark);
}

.cta .soon {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */

footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--surface-2);
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  color: var(--text-2);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Text pages: privacy, terms, support, account deletion */

.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
}

.doc h2 {
  font-size: 24px;
  margin-top: 40px;
}

.doc h3 {
  font-size: 18px;
  margin-top: 24px;
}

.doc p, .doc li {
  color: var(--text-2);
}

.doc li {
  margin-bottom: 6px;
}

.doc strong {
  color: var(--text);
}

.updated {
  color: var(--muted);
  font-size: 15px;
}

.short {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: var(--surface);
}

.short p {
  margin: 0;
  color: var(--text);
}

.table {
  overflow-x: auto;
  margin: 16px 0;
}

.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th, .doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-2);
  text-align: left;
  vertical-align: top;
  color: var(--text-2);
}

.doc th {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.faq details {
  margin: 10px 0;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 10px;
}

.faq summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--surface-2);
  margin-bottom: 12px;
}

.faq details > *:last-child {
  margin-bottom: 16px;
}

.where {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.where div {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 10px;
}

.where h3 {
  margin-top: 0;
  font-size: 16px;
}

.where p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 700px) {
  .where {
    grid-template-columns: 1fr;
  }
}
