:root {
  --mustard: #d9a406;
  --mustard-dark: #c7870f;
  --frame: #e0ac1c;
  --soft: #fbf3d9;
  --ink: #1a1a1a;
  --muted: #5f5f5f;
  --line: #e6e3da;
  --text-white: rgb(233, 233, 233);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--frame);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.5;
  padding: clamp(12px, 3vw, 40px);
}
.card {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: #fff url("../assets/map.svg") center/cover no-repeat;
  border-radius: 24px;
  padding: 28px clamp(22px, 5vw, 64px) 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  width: 96px;
  height: auto;
  display: block;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-white);
  background: red;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  padding: 32px 0 24px;
}
.copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.copy h1 span {
  color: var(--mustard);
}
.copy p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 18px;
}
.join {
  max-width: 480px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.join h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}
.join p {
  margin: 0 0 18px;
  max-width: none;
  font-size: 16px;
}
.join .actions {
  max-width: none;
}
.actions {
  display: flex;
  gap: 12px;
  max-width: 440px;
}
.btn {
  flex: 1;
  min-height: 48px;
  padding: 8px 14px;
  line-height: 1.25;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  /* border: 2px solid var(--mustard); */
  border: none;
  color: var(--ink);
  color: var(--text-white);
}
.btn-fill {
  /* background: var(--mustard); */
  background: rgb(226, 23, 23);
}

@media (hover: hover) {
  .btn-fill:hover {
    background: rgb(200, 14, 14);
  }
}

.btn-line {
  background: var(--ink);
}

@media (hover: hover) {
  .btn-line:hover {
    background: #3a3a3a;
  }
}

.btn:focus-visible,
.close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}

.visual::before {
  content: "";
  position: absolute;
  width: min(100%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--soft);
}

.phone {
  position: relative;
  display: block;
  width: clamp(220px, 27vw, 300px);
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.28));
}

footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 24px;
  }
  .copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .actions {
    margin: 0 auto;
  }
  .join {
    margin-left: auto;
    margin-right: auto;
  }
  footer {
    text-align: center;
  }
}

/* Pop-up */
dialog {
  width: calc(100% - 40px);
  max-width: 420px;
  border: 0;
  border-radius: 18px;
  padding: 28px;
  /* color: var(--ink); */
  color: var(--text-white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.306);
  background: #2323238a;
  backdrop-filter: blur(50px);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
dialog h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.close {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-white);
  cursor: pointer;
  padding: 0 4px;
}
dialog p.sub {
  margin: 0 0 20px;
  /* color: var(--muted); */
  color: var(--text-white);
  font-size: 15px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
input[type="email"],
input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
input[type="email"]:focus,
input[type="text"]:focus {
  outline: 2px solid var(--mustard);
  border-color: var(--mustard);
}
.terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  /* color: var(--muted); */
  color: var(--text-white);
}
.terms input {
  margin-top: 3px;
  accent-color: var(--mustard);
  width: 16px;
  height: 16px;
  flex: none;
}
.submit {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--mustard);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.submit:hover {
  background: var(--mustard-dark);
}
.msg {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  text-align: center;
}
.msg.ok {
  color: #2e7d32;
}
.msg.err {
  color: #c62828;
}

/* ---------- Responsive fit ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 820px) {
  .visual {
    padding-top: 4px;
  }
  .visual .screen {
    width: min(66vw, 290px);
  }
}

@media (max-width: 520px) {
  body {
    padding: 10px;
  }
  .card {
    padding: 20px 18px 18px;
    border-radius: 20px;
  }
  .logo {
    width: 80px;
  }
  .badge {
    font-size: 11px;
    padding: 5px 12px;
  }
  .hero {
    gap: 22px;
    padding: 22px 0 14px;
  }
  .copy h1 {
    font-size: clamp(28px, 9vw, 40px);
    margin-bottom: 12px;
  }
  .copy p {
    font-size: clamp(15px, 4.2vw, 17px);
  }
  .join {
    margin-top: 20px;
    padding-top: 18px;
  }
  .join h2 {
    font-size: clamp(19px, 5.6vw, 23px);
  }
  .join p {
    font-size: clamp(14px, 3.9vw, 16px);
    margin-bottom: 14px;
  }
  .actions {
    gap: 10px;
  }
  .btn {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
    white-space: nowrap;
  }
  footer {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .actions {
    flex-direction: column;
  }
}

/* ---------- Footer + social icons ---------- */
footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer p {
  margin: 0;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.social svg {
  width: 18px;
  height: 18px;
}
.social a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
@media (hover: hover) {
  .social a:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }
}
@media (max-width: 820px) {
  .social {
    justify-content: center;
  }
}

/* ---------- Single waitlist button ---------- */
.actions .btn:only-child {
  flex: none;
  min-width: 240px;
  padding: 8px 32px;
}
@media (max-width: 820px) {
  .actions .btn:only-child {
    flex: 1;
    max-width: 360px;
  }
}
@media (max-width: 520px) {
  .actions .btn:only-child {
    max-width: none;
  }
}

/* ---------- Customer / runner choice inside the pop-up ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice label {
  padding: 11px 8px;
  border-radius: 9px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
}
.choice input:checked + label {
  background: rgb(226, 23, 23);
  color: #fff;
}
.choice input:focus-visible + label {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Smaller pop-up ---------- */
dialog {
  width: calc(100% - 32px);
  max-width: 340px;
  padding: 20px;
  border-radius: 16px;
}
.top {
  margin-bottom: 4px;
}
dialog h2 {
  font-size: 19px;
}
.close {
  font-size: 24px;
}
dialog p.sub {
  margin: 0 0 14px;
  font-size: 13.5px;
}
form {
  gap: 10px;
}
.choice {
  padding: 3px;
  border-radius: 10px;
}
.choice label {
  padding: 8px 6px;
  font-size: 13.5px;
}
input[type="email"],
input[type="text"] {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 15px;
}
.terms {
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.terms input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.submit {
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
}
.submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.msg {
  min-height: 16px;
  font-size: 13px;
}
