/* Page Turn splash + links pages.
 *
 * These are plain static files, deliberately. They are served by Firebase
 * Hosting straight from disk, ahead of the catch-all rewrite that hands every
 * other address to the theater app — so the front door costs no JavaScript
 * framework and no second origin. Ported from the old Next.js/Tailwind splash
 * site (2026-08-14); the colours below are the Tailwind values that site used,
 * written out literally so nothing has to be compiled.
 */

:root {
  --ink: #ffffff;
  --paper: #000000;
  --edge: #374151; /* was gray-700 */
  --edge-lit: #6b7280; /* was gray-500 */
  --panel: #111827; /* was gray-900 */
  --muted: #9ca3af; /* was gray-400 */
  --good: #4ade80; /* was green-400 */
  --bad: #f87171; /* was red-400 */
  --accent: #d946ef; /* was fuchsia-500 */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ---------- the splash screen (the language chooser) ---------- */

.splash-logo {
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin-bottom: 4rem;
}

.flags {
  display: flex;
  gap: 2rem;
}

.flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.flag:hover {
  border-color: var(--edge-lit);
  background: var(--panel);
}

.flag img {
  width: 4rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

.flag span {
  font-size: 1.125rem;
  font-weight: 500;
}

/* ---------- the links pages ---------- */

.stack {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.list-logo {
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin: 0 auto 1rem;
}
/* The logo is the front page's heading, for screen readers (accessibility check,
   2026-09-27). The heading draws nothing of its own; the logo looks as it did. */
.list-heading {
  margin: 0;
  line-height: 0;
}
.list-heading .list-logo {
  display: block;
}

.row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.row:hover {
  border-color: var(--edge-lit);
  background: var(--panel);
  transform: scale(1.05);
}

/* The stories button leads to the product itself, so it reads as the loud
   one: filled rather than outlined. */
.row--stories {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.row--stories:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
}

/* The social marks are authored as currentColor, which resolves to black
   inside an <img>. Force them white the way the old site did. */
.row img {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.row--stories img {
  filter: none;
}

/* ---------- the email signup ---------- */

.signup {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.signup form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup input[type="email"],
.signup input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-family: inherit;
}

.signup input::placeholder {
  color: var(--edge-lit);
}

.signup input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.choices input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.signup button {
  width: 100%;
  padding: 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s;
}

.signup button:hover:not(:disabled) {
  background: #e5e7eb;
}

.signup button:disabled {
  opacity: 0.5;
  cursor: default;
}

.note {
  margin: 0;
  text-align: center;
}

/* The sign-up's agreement to get email, which Japan's anti-spam law wants stated
   before anyone is written to (2026-09-27); the form's timestamp is the record. */
.consent {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.note--good {
  color: var(--good);
}

.note--bad {
  color: var(--bad);
}

[hidden] {
  display: none !important;
}

.back {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back:hover {
  color: var(--ink);
}
