/* ShiftClaim — mobile-first, phone UX */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --brand: #0f766e;
  --brand-dark: #0d9488;
  --brand-ink: #ffffff;
  --danger: #b91c1c;
  --ok: #15803d;
  --radius: 12px;
  --tap: 44px;
  --max: 480px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
}

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

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0 1rem;
}

.logo {
  margin: 0;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.badge {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #ccfbf1;
  color: #115e59;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.back-link {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  color: var(--brand);
}

.hero h1,
.event-header h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.subhead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.event-org {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--brand);
}

.event-hint {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-pay {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  margin-top: 0.75rem;
}

.btn-claim {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
  font-size: 1.125rem;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.price-card,
.waitlist-card,
.how,
.shift-card,
.confirm-card,
.feedback-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.price-card h2,
.waitlist-card h2,
.how h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.price-amount {
  margin: 0.25rem 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.price-note,
.pay-hint {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.pay-hint {
  margin-top: 0.75rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.form label,
.claim-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

input[type="email"],
input[type="text"],
input[type="tel"] {
  min-height: var(--tap);
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-weight: 400;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25em;
}

.form-status.ok {
  color: var(--ok);
  font-weight: 600;
}

.form-status.err {
  color: var(--danger);
  font-weight: 600;
}

.steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.steps li {
  margin-bottom: 0.5rem;
}

.site-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* Demo shifts */
.shifts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shift-card {
  margin-bottom: 0;
}

.shift-meta h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.shift-time {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.shift-seats {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.shift-card.is-full .btn-claim {
  display: none;
}

.shift-card.is-full .shift-seats {
  color: var(--danger);
  font-weight: 600;
}

.shift-card.is-expanded .btn-claim {
  display: none;
}

.claim-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.claim-form[hidden] {
  display: none !important;
}

.confirm-view {
  margin-top: 0.5rem;
}

.confirm-view[hidden] {
  display: none !important;
}

.confirm-card {
  text-align: center;
  padding: 2rem 1.25rem;
}

.confirm-emoji {
  margin: 0 0 0.5rem;
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--ok);
  font-size: 1.75rem;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
}

.confirm-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.confirm-detail {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.confirm-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 481px) {
  body {
    background: #e2e8f0;
  }

  .page {
    margin-top: 1rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.feedback-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feedback-tab {
  min-height: var(--tap);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 650;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.feedback-tab.is-active {
  background: #ccfbf1;
  border-color: var(--brand);
  color: #115e59;
}

textarea,
input[type="url"] {
  min-height: var(--tap);
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-weight: 400;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  resize: vertical;
}

textarea:focus,
input[type="url"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

#bug-fields[hidden],
#enhancement-fields[hidden] {
  display: none !important;
}
