/*
  Brand tokens match the settled design from scratch/confirmation-email-mockup.html
  (the transactional email is the one place these can never move - most email
  clients ignore external stylesheets/dark-mode media queries, so its palette
  is intentionally fixed-light and duplicated by hex value in copy.js rather
  than pulling from these variables). Everything server-rendered here, by
  contrast, gets to be a real theme-aware page.
*/
:root {
  color-scheme: light dark;
  --bg: #eee9e1;
  --card: #fffdfa;
  --text: #20291f;
  --muted: #6b7570;
  --accent: #3a6b52;
  --accent-hover: #2e5641;
  --accent-contrast: #fffdfa;
  --error: #b3413a;
  --border: #e3ded6;
  --shadow: rgba(32, 41, 31, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b16;
    --card: #1d221c;
    --text: #e8e6df;
    --muted: #9aa39a;
    --accent: #6fae8c;
    --accent-hover: #8fc7a6;
    --accent-contrast: #12160f;
    --error: #e39289;
    --border: #333b31;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 32px -16px var(--shadow);
}

/* Brand mark - matches the "KC" roundel + wordmark used in the order
   confirmation email, so the same visual identity shows up everywhere a
   parent sees this business, not just their inbox. */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.wordmark .mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, 'Iowan Old Style', serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.wordmark .name {
  font-family: Georgia, 'Iowan Old Style', serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

h1 {
  font-family: Georgia, 'Iowan Old Style', serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 10px;
}

p.instructions {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="file"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 16px;
  background: var(--card);
  color: var(--text);
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.message {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message.error { color: var(--error); }
.message.success { color: var(--accent); }

.progress-wrap {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 16px;
  display: none;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

video, iframe.embed {
  width: 100%;
  border-radius: 8px;
  border: none;
  aspect-ratio: 16 / 9;
}

a.link {
  color: var(--accent);
  word-break: break-all;
}
