/* Values from the app's theme (src/styles/theme/colors.ts, typography.ts,
   components/button.tsx), copied: this service ships without the app's MUI. */
:root {
  --canvas: #f6f6f8; /* NEUTRAL[50] */
  --surface: #ffffff; /* NEUTRAL[0] */
  --inset: #fafafb; /* NEUTRAL[25] */
  --line: #e7e8ec; /* NEUTRAL[100] */
  --control-line: #d9dbe1; /* NEUTRAL[200] */
  --placeholder: #a5aab6; /* NEUTRAL[300] */
  --muted: #767c8b; /* NEUTRAL[400] */
  --supporting: #3b3f4a; /* NEUTRAL[500] */
  --ink: #14161c; /* NEUTRAL[700] */
  --accent: #3f4ca8; /* INDIGO_600 */
  --accent-hover: #38439a; /* INDIGO_700 */
  --accent-text: #38439a; /* ACCENT_TEXT */
  --accent-line: #c6ceec; /* LAVENDER */
  --accent-soft: #eaeefc; /* LAV_SOFT */
  --success: #22654f;
  --error: #913049;
  --warning-light: #f9ece5;
  --warning-border: #e9c7b6;
  --warning-dark: #8b4419;
  --shadow-card:
    0 1px 0 rgba(20, 22, 28, 0.02), 0 8px 22px -16px rgba(20, 22, 28, 0.1);
  --shadow-cta: 0 6px 16px -8px rgba(63, 76, 168, 0.7);
  font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.banner {
  margin: 0;
  padding: 10px 16px;
  background: var(--warning-light);
  border-bottom: 1px solid var(--warning-border);
  color: var(--warning-dark);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

header {
  max-width: 560px;
  margin: 40px auto 16px;
  padding: 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.product {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

main {
  max-width: 560px;
  margin: 0 auto 48px;
  padding: 0 16px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 24px;
}

h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.lede {
  margin: 0 0 20px;
  color: var(--supporting);
}

form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}
.field > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.field > span em {
  font-style: normal;
  font-weight: 500;
  color: var(--placeholder);
}

input:not([type="checkbox"]) {
  width: 100%;
  height: 34px;
  padding: 0 11px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: 9px;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}
input::placeholder {
  color: var(--placeholder);
}
input:not([type="checkbox"]):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input:user-invalid {
  border-color: var(--error);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--supporting);
}
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.hint {
  margin: 0;
  min-height: 1em;
  font-size: 11px;
  color: var(--muted);
}
.hint.ok {
  color: var(--success);
}
.hint.bad,
.error {
  color: var(--error);
}
.error {
  margin: 0;
}
.error:empty,
.hint:empty {
  display: none;
}

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

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 9px;
  border: 1px solid var(--control-line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 120ms ease,
    border-color 120ms ease;
}
button:hover,
.button:hover {
  background: var(--inset);
  text-decoration: none;
}
button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button[type="submit"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}
button[type="submit"]:hover {
  background: var(--accent-hover);
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.result {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 20px;
  align-items: start;
}
.qr {
  width: 136px;
  height: 136px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.result-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.short {
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

.secret {
  margin: 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  color: var(--supporting);
  display: grid;
  gap: 8px;
}
.secret strong {
  color: var(--ink);
}
.secret a {
  word-break: break-all;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 480px) {
  .card {
    padding: 18px;
  }
  .result {
    grid-template-columns: 1fr;
  }
}

hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
