/* Both pages share this stylesheet. Neither carries a form of any real
   complexity - one email field, one button, one confirmation step - so a
   single small file is simpler to keep correct than splitting per page.

   No web font is loaded, same reasoning as quorvyn_checkout: a font would be
   a second origin on a page that already has none, and the system stack
   renders instantly. */

:root {
  color-scheme: light dark;
  --ink: #16181d;
  --ink-muted: #5b6270;
  --ground: #fbfbfc;
  --surface: #ffffff;
  --border: #d7dae0;
  --accent: #1f4fd8;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceef2;
    --ink-muted: #a3aab8;
    --ground: #14161a;
    --surface: #1b1e24;
    --border: #33373f;
    --accent: #6d8dff;
    --accent-ink: #0c0e12;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 2rem;
  background: var(--ground);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

main {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.brand {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

form {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

label {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}

input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

#preview {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

#product-line {
  margin: 0;
  font-weight: 600;
}

#status {
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
}

#status:empty {
  margin: 0;
}

footer {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  padding-top: 2rem;
  font-size: 0.875rem;
}

footer a {
  color: var(--ink-muted);
}
