/* The public demo page around the church screen. Riah dark, one column, the screen as the hero. */
html { background: var(--riah-bg); }

body {
  margin: 0;
  color: var(--riah-body);
  background: var(--riah-bg);
  font: 400 var(--riah-text-body)/1.55 var(--riah-font-ui);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

.page {
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 28px) 48px;
}

h1 {
  max-width: 22ch;
  margin: 32px 0 12px;
  color: var(--riah-ink);
  font: 600 var(--riah-text-title)/1.15 var(--riah-font-ui);
  letter-spacing: -0.015em;
}

.lead {
  max-width: 60ch;
  margin: 0 0 24px;
  font-size: var(--riah-text-lead);
}

.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 28px;
}
.try span { max-width: 44ch; font-size: var(--riah-text-small); }
.try .riah-button { display: inline-flex; align-items: center; box-sizing: border-box; text-decoration: none; }

/* ---------------------------------------------------------------- the screen */
.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--riah-rule-strong);
  border-radius: 8px;
  background: #000;
}

.frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.frame .exit { display: none; }

/* Full screen where the browser can't do it for a frame (iPhone): fill the window. */
.player.is-filled .frame {
  position: fixed;
  inset: 0;
  z-index: 10;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.player.is-filled .exit {
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 12px;
}

.langs,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.langs .riah-label { margin-right: 4px; }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--riah-rule);
  border-radius: var(--riah-radius-control);
  color: var(--riah-dim);
  background: transparent;
  font: 700 var(--riah-text-small)/1 var(--riah-font-ui);
  cursor: pointer;
  transition: border-color var(--riah-speed) ease, color var(--riah-speed) ease, background-color var(--riah-speed) ease;
}

/* A small box that fills in when the language is on. */
.toggle::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.toggle:hover { border-color: var(--riah-rule-strong); color: var(--riah-ink); }

.toggle[aria-pressed="true"] {
  border-color: var(--riah-ink);
  color: var(--riah-ink);
  background: var(--riah-surface-raised);
}

.toggle[aria-pressed="true"]::before { background: currentColor; }

.toggle:focus-visible {
  outline: 2px solid var(--riah-pink);
  outline-offset: 2px;
}

.caption {
  max-width: 70ch;
  margin: 12px 0 0;
  color: var(--riah-dim);
  font-size: var(--riah-text-small);
}

.phone-only { display: none; }

/* ---------------------------------------------------------------- facts */
.facts { margin-top: 48px; }

.facts h2 {
  margin: 0 0 8px;
  color: var(--riah-ink);
  font: 600 var(--riah-text-section)/1.2 var(--riah-font-ui);
}

.facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--riah-rule);
}

.facts li {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--riah-rule);
}

.facts strong {
  color: var(--riah-ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  h1 { font-size: var(--riah-text-section); }
  .lead { font-size: var(--riah-text-body); }
  .facts li { grid-template-columns: 1fr; }
  .phone-only { display: block; color: var(--riah-body); }
}

footer.riah-fine {
  margin-top: 32px;
  color: var(--riah-dim);
  font-size: var(--riah-text-small);
}

footer a { color: var(--riah-body); }
footer a:hover { color: var(--riah-ink); }
footer a:focus-visible { outline: 2px solid var(--riah-pink); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .toggle { transition: none; }
}

/* The kit's corner labels sit on top of the wordmark until the margin beside the page is wide enough. */
.riah-slug { display: none; }
@media (min-width: 1640px) { .riah-slug { display: block; } }
