/* Message link fallback (U-06). Colours match Theme in Shared/PrivacyStyle.swift. */

:root {
  --primary: #d9381e;
  --link: #ff6a4d;
  --grouped-fill: #1c1c1e;
  --secondary-text: rgba(235, 235, 245, 0.6);
  --card-radius: 24px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

main {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 56px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

p {
  margin: 0;
}

.lead,
.note,
.card p {
  color: var(--secondary-text);
}

.lead {
  margin-bottom: 8px;
}

.note {
  font-size: 15px;
}

.warning {
  color: var(--link);
}

.store {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.store:active {
  opacity: 0.8;
}

.store:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.card {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--card-radius);
  background: var(--grouped-fill);
  text-align: left;
}

.card p {
  font-size: 15px;
}

/* The demo video is portrait (9:16), so it's kept narrower than the column. */
.demo {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo h2 {
  margin-bottom: 12px;
}

.demo video {
  display: block;
  width: 100%;
  max-width: 270px;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--card-radius);
  background: var(--grouped-fill);
}

.privacy {
  margin-top: 8px;
  font-size: 13px;
  color: var(--secondary-text);
}

footer {
  padding: 0 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--secondary-text);
}

/* m.js sets data-platform. Without JavaScript it stays "unknown" and shows every option. */
html[data-platform="unknown"] [data-show]:not([data-show~="unknown"]),
html[data-platform="ios"] [data-show]:not([data-show~="ios"]),
html[data-platform="android"] [data-show]:not([data-show~="android"]),
html[data-platform="desktop"] [data-show]:not([data-show~="desktop"]),
[hidden] {
  display: none;
}

/* On Android the coming-soon card is the whole answer, so it leads. */
html[data-platform="android"] .card {
  margin-top: 0;
  text-align: center;
}
