/* Menu waitlist page. Tokens mirror DinnerFirst/DesignSystem.swift. */

:root {
  --ground: #fbfaf8;
  --ink: #0e0e0f;
  --muted: #666970;
  --surface: #ffffff;
  --raised: #f1f1f4;
  --line: #dfdfe3;
  --cobalt: #335cf5;
  --cobalt-dark: #1a36a8;
  --lavender: #b878f5;
  --coral: #ff4f45;
  --radius-button: 18px;
  --radius-field: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
  max-width: 1120px;
  min-height: 100vh;
  padding: 24px 20px 28px;
}

.skip-link {
  background: var(--ink);
  border-radius: 10px;
  color: #fff;
  left: 16px;
  padding: 10px 16px;
  position: absolute;
  top: -60px;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.wordmark {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 26px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.wordmark__heart {
  fill: var(--coral);
  height: 20px;
  width: 20px;
}

/* ---------- Hero layout ---------- */

.hero {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 8px;
  text-align: center;
  width: 100%;
}

h1 {
  font-size: clamp(34px, 7.2vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 auto;
  max-width: 17ch;
  text-wrap: balance;
}

.intro-line {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.intro-line--lead {
  margin-top: 18px;
  white-space: nowrap;
}

.hero-form {
  margin-top: 26px;
  width: 100%;
}

/* ---------- Form ---------- */

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  max-width: 520px;
}

input[type="email"],
select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  height: 54px;
  padding: 0 18px;
  width: 100%;
}

input[type="email"]::placeholder {
  color: var(--muted);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230e0e0f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  padding-right: 44px;
}

select:invalid,
select option[value=""] {
  color: var(--muted);
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

.confirmation:focus,
.form-status:focus {
  outline: none;
}

button[type="submit"] {
  align-items: center;
  background: var(--cobalt);
  border: 0;
  border-radius: var(--radius-button);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  height: 56px;
  justify-content: space-between;
  padding: 0 20px;
  transition: background-color 140ms ease;
  width: 100%;
}

button[type="submit"]:hover {
  background: var(--cobalt-dark);
}

button[type="submit"]:disabled {
  cursor: default;
  opacity: 0.75;
}

.btn-label {
  font-size: 16px;
  font-weight: 700;
}

.btn-detail {
  font-size: 15px;
  font-weight: 600;
}

.form-status {
  color: var(--coral);
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  min-height: 20px;
}

/* Honeypot */
.form-field--trap {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

/* ---------- Confirmation ---------- */

.confirmation {
  margin: 0 auto;
  max-width: 520px;
}

.confirmation h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.confirmation p {
  color: var(--muted);
  font-size: 16px;
  margin: 8px auto 0;
  max-width: 40ch;
}

/* ---------- Invite link ---------- */

.invite {
  margin: 22px auto 0;
  max-width: 520px;
}

.invite__label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.invite__row {
  display: flex;
  gap: 8px;
}

.invite__link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  height: 48px;
  min-width: 0;
  padding: 0 14px;
}

.invite__copy {
  background: var(--ink);
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  height: 48px;
  padding: 0 18px;
  transition: background-color 140ms ease;
}

.invite__copy:hover {
  background: #000;
}

/* ---------- Borough (confirmation step) ---------- */

.borough {
  margin: 22px auto 0;
  max-width: 520px;
}

.borough__label {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.borough select {
  border-radius: 14px;
  font-size: 15px;
  height: 48px;
}

.borough__status {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}

/* ---------- Phone verification ---------- */

.verify {
  border-top: 1px solid var(--line);
  margin: 22px auto 0;
  max-width: 520px;
  padding-top: 18px;
}

.verify__label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.verify--done .verify__label {
  color: var(--cobalt);
}

.verify__row {
  display: flex;
  gap: 8px;
}

.verify__input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  flex: 1;
  font-family: inherit;
  font-size: 15px;
  height: 48px;
  min-width: 0;
  padding: 0 14px;
}

.verify__button {
  background: var(--ink);
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  height: 48px;
  padding: 0 18px;
  transition: background-color 140ms ease;
}

.verify__button:hover {
  background: #000;
}

.verify__button:disabled {
  cursor: default;
  opacity: 0.75;
}

.verify__status {
  color: var(--coral);
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  min-height: 18px;
}

/* ---------- Particles ---------- */

.fx-particle {
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  z-index: 50;
}

/* ---------- Doc pages (terms / privacy) ---------- */

.doc {
  flex: 1;
  margin: 0 auto;
  max-width: 680px;
  padding: 8px 0 24px;
  text-align: left;
  width: 100%;
}

.doc h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: none;
  text-wrap: initial;
}

.doc__updated {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 24px;
}

.doc h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 8px;
}

.doc p,
.doc ul {
  color: #3d4045;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--cobalt);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-right {
  align-items: center;
  display: flex;
  gap: 18px;
}

/* ---------- SMS consent ---------- */

.verify__consent {
  align-items: flex-start;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 12.5px;
  gap: 9px;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: left;
}

.verify__consent input {
  accent-color: var(--cobalt);
  flex-shrink: 0;
  height: 16px;
  margin-top: 2px;
  width: 16px;
}

.verify__consent a {
  color: var(--cobalt);
}

/* ---------- Footer ---------- */

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding-top: 14px;
}

.social-link {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease;
}

.social-link:hover {
  color: var(--ink);
}

.social-link--top {
  color: var(--ink);
}

.social-link--top:hover {
  color: var(--cobalt);
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ---------- Desktop ---------- */

@media (min-width: 880px) {
  .page-shell {
    padding: 32px 40px;
  }

  .hero-form {
    margin-top: 34px;
  }
}

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