:root {
  --bg: #fff;
  --text: #000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

#dot-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.brand {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.tagline {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.flip-shell {
  perspective: 1200px;
}

.flip-inner {
  position: relative;
  width: 260px;
  height: 130px;
  transform-style: preserve-3d;
  transition: transform 380ms ease;
}

.flip-inner.flipped {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 16px;
}

.front {
}

.front .button-label {
  display: inline-block;
}

.button {
  display: inline-block;
  padding: 9px 44px;
  border: 1px solid var(--text);
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 220ms ease;
}

.button:hover {
  background: transparent;
  color: var(--text);
}

.back {
  transform: rotateY(180deg);
}

.apple-button {
  padding: 12px 26px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.apple-button:hover {
  background: #111;
  border-color: #111;
}

.email-note {
  margin: 6px 0 0;
  font-size: 14px;
  color: #444;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.modal {
  background: #fff;
  color: #000;
  padding: 20px 24px;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  min-width: 240px;
  text-align: center;
}

.modal-message {
  margin: 0 0 14px;
  font-size: 15px;
}

.modal-close {
  padding: 10px 18px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}
