/* corkamigo.com: één stylesheet voor de placeholder en de uitnodigingspagina (/i/<code>).
   Geen inline stijlen: de CSP laat enkel style-src 'self' toe. Systeemfonts, licht en donker;
   de accentkleur is die van de app (AccentColor). */

:root {
  color-scheme: light dark;
  --bg: #faf8f9;
  --card: #ffffff;
  --text: #1f161a;
  --muted: #6b5c63;
  --line: #e7dfe3;
  --accent: #7e1e3c;
  --accent-text: #ffffff;
  --code-bg: #f4eef1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141013;
    --card: #1e181c;
    --text: #f2ebee;
    --muted: #b3a5ac;
    --line: #3a2f35;
    --accent: #d14f66;
    --accent-text: #1a0f13;
    --code-bg: #2a2127;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; }

/* Placeholder (/) */

.placeholder {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.placeholder main { padding: 24px; text-align: center; max-width: 36rem; }
.placeholder h1 { font-size: 40px; margin: 0 0 8px; }
.placeholder p { margin: 0 0 6px; }

/* Uitnodiging (/i/<code>) */

.invite main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.invite .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
}

.invite .icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 0 16px;
}

.invite h1 { font-size: 28px; margin: 0 0 12px; }
.invite h2 { font-size: 20px; margin: 20px 0 8px; }
.invite p { margin: 0 0 12px; }

.code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
}

.code-row[hidden], [hidden] { display: none !important; }

.code {
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--code-bg);
  font: 600 28px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  -webkit-user-select: all;
  user-select: all;
}

/* Het streepje van ABCD-EFGH staat enkel in de weergave: wie selecteert en kopieert, krijgt de
   8 tekens zonder streepje (dat aanvaardt elk invoerveld). */
.code span + span::before { content: "-"; }

button {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.invite .status { min-height: 1.5em; margin: 0 0 4px; color: var(--muted); font-size: 15px; }

.invalid {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--code-bg);
}

.steps { margin: 0 0 16px; padding-left: 1.4em; }
.steps li { margin: 0 0 10px; padding-left: 4px; }

.store-link { display: inline-block; margin-top: 4px; font-weight: 600; }

/* De schakelaar data-store op <html>: "beta" (TestFlight) tot de App Store-release, dan "store". */
html[data-store="beta"] [data-store-only="store"],
html[data-store="store"] [data-store-only="beta"] { display: none; }

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

noscript p { margin: 0 0 8px; }

@media (max-width: 380px) {
  .invite .card { padding: 22px 18px; }
  .code { font-size: 24px; }
}
