/* Tokens match checkout/src/styles.css. System font on purpose: these pages
   should feel like the sender's link, not a hosting product. */
:root {
  --text-heading: #000;
  --text-body: #4b5563;
  --text-secondary: #6b7280;
  --bg-page: #fafafa;
  --bg-surface: #fff;
  --outline: #e5e5e5;
  --outline-strong: #d1d5db;
  --primary: #000;
  --primary-hover: #1a1a1a;
  --on-primary: #fff;
  --error: #b91c1c;
  --focus-ring: #0d99ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline);
  margin-bottom: 24px;
}

.title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.body {
  margin: 0 0 24px;
  color: var(--text-body);
  font-size: 16px;
}

.form { display: grid; gap: 12px; }

.label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text-heading);
  background: var(--bg-surface);
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-sm);
}

.input[aria-invalid="true"] { border-color: var(--error); }

.button {
  height: 48px;
  font: inherit;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}

.button:hover { background: var(--primary-hover); }
.button:active { transform: scale(0.98); }

.input:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.error {
  min-height: 21px;
  margin: 0;
  font-size: 14px;
  color: var(--error);
}

.footer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
