/* Lets Chill — the website. The colors of the app; system fonts (nothing loaded from others);
   logical properties, so Arabic (dir="rtl") mirrors by itself. */

:root {
  --brand: #ca1f7b;
  --brand-dark: #8a1352;
  --brand-soft: #fbe3ef;
  --premium: #e0a100;
  --ultimate: #8e24aa;
  --bg: #fbf7fa;
  --surface: #ffffff;
  --text: #2d2330;
  --muted: #6b5d70;
  --line: #eadde5;
  --shadow: 0 10px 30px rgba(45, 35, 48, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #e0438f;
    --brand-soft: #3b1730;
    --bg: #151017;
    --surface: #211a24;
    --text: #f4edf3;
    --muted: #b8a9b8;
    --line: #3a2e3f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { a:hover { color: #f27bb4; } }

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

.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.icon.small { width: 18px; height: 18px; }

/* --- The bar at the top: brand, menu, languages. */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand.big { font-size: 1.6rem; margin: 48px 0 24px; }

.menu { display: flex; gap: 4px; margin-inline-start: auto; }
.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.menu a:hover { background: var(--brand-soft); color: var(--brand); }

.langs { position: relative; }
.langs summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--surface);
  user-select: none;
}
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary { border-color: var(--brand); color: var(--brand); }
.langs ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.langs li a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.langs li a:hover { background: var(--brand-soft); color: var(--brand); }
.langs li a[aria-current="page"] { font-weight: 700; color: var(--brand); }

@media (max-width: 760px) {
  .menu { display: none; }
  .langs { margin-inline-start: auto; }
}

/* --- The first view: what the app is, and a phone with the grid. */

.hero {
  padding: 72px 0 80px;
  background: radial-gradient(60% 80% at 85% 10%, var(--brand-soft), transparent 70%);
  background:
    radial-gradient(60% 80% at 85% 10%, var(--brand-soft), transparent 70%),
    radial-gradient(40% 60% at 5% 90%, color-mix(in srgb, var(--ultimate) 12%, transparent), transparent 70%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.lead { font-size: 1.2rem; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }

/* Where to get the app: the official badges of the stores (and "soon" for one without a link). The
   badge of Google Play brings its own margin above and below (on the sides it differs by language):
   pulled back, it is as high as the others. */
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.store { display: block; line-height: 0; border-radius: 8px; }
.store img { display: block; width: auto; }
.store .play { height: 52px; margin: -6px 0; }
.store .appstore { height: 40px; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 35%, transparent);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

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

/* The phone: the real grid of the app (tools/screens.py), "Beispielbilder" below it. */
.phone-figure {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0;
}

.phone {
  width: min(280px, 100%);
  padding: 12px;
  border-radius: 34px;
  background: #1c1520;
  box-shadow: 0 30px 60px rgba(45, 35, 48, 0.25), inset 0 0 0 2px #3a2e3f;
  transform: rotate(3deg);
}
[dir="rtl"] .phone { transform: rotate(-3deg); }

.screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #fbf7fa;
}

.example { margin: 0; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: 220px; }
}

/* --- The screenshots: the store images of the app in a row to scroll through, the first lined up
   with the text. */

.shots-section h2 { margin-bottom: 28px; }
.shots {
  --inset: max(20px, calc((100% - 1060px) / 2));
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  padding: 6px var(--inset) 26px;
}
.shots img {
  flex: 0 0 auto;
  width: 240px;
  height: auto;
  border-radius: 18px;
  scroll-snap-align: start;
  box-shadow: 0 14px 30px rgba(45, 35, 48, 0.2);
}
.shots:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

@media (max-width: 560px) {
  .shots img { width: 200px; }
}

/* --- The sections. */

.section { padding: 80px 0; }
.section.tinted { background: var(--brand-soft); background: color-mix(in srgb, var(--brand-soft) 45%, var(--bg)); }
.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.intro { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.section h2 + .cards { margin-top: 32px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .cards, .cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards, .cards.four { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--brand-soft);
  fill: var(--brand);
}
.card h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.card p { margin: 0; color: var(--muted); }

.more { margin: 28px 0 0; font-weight: 600; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--premium);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.plan.ultimate { border-top-color: var(--ultimate); }
.plan h3 { font-size: 1.5rem; color: var(--premium); }
.plan.ultimate h3 { color: var(--ultimate); }
@media (prefers-color-scheme: dark) { .plan.ultimate h3 { color: #ce93d8; } }
.plan ul { list-style: none; margin: 16px 0 0; padding: 0; }
.plan li { position: relative; padding-inline-start: 30px; margin: 10px 0; }
.plan li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--premium) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.plan.ultimate li::before { background-color: var(--ultimate); }

.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 12px 0;
  padding: 0 20px;
}
.qa summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.4rem;
  line-height: 1;
}
.qa[open] summary::after { content: "–"; }
.qa p { margin: 0 0 18px; color: var(--muted); }

/* --- Help and contact: the address to write to. */

.contact { margin: 0; }
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.contact a:hover, .contact a:focus-visible { background: var(--brand-dark); }

/* --- The foot: the legal texts. */

.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 16px; }
.legal a { color: var(--text); font-weight: 600; text-decoration: none; }
.legal a:hover { color: var(--brand); text-decoration: underline; }
.foot p { margin: 4px 0; }
.foot .marks { margin-top: 12px; font-size: 0.8rem; }

/* --- The plain pages: the start page (languages), forwarding, 404. */

.plain main { padding-bottom: 64px; }
.choose { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.choose a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.choose a:hover { border-color: var(--brand); color: var(--brand); }
.code { font-size: 4rem; font-weight: 800; color: var(--brand); margin: 0; line-height: 1; }
