:root {
  --paper: #f1f0eb;
  --ink: #111111;
  --muted: #5e584f;
  --line: #e3ddd2;
  --card: #fffcf7;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #e7e2d8;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
}

.phone {
  width: min(430px, 100%);
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(20px, env(safe-area-inset-top))
    22px
    max(18px, env(safe-area-inset-bottom));
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.top {
  text-align: center;
}

.logo {
  display: block;
  width: min(148px, 42vw);
  height: auto;
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.deck {
  margin: 12px auto 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}

.points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.points li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mark {
  width: 8px;
  height: 22px;
  border-radius: 99px;
  background: var(--ink);
  flex: 0 0 auto;
  align-self: flex-end;
  margin-bottom: 2px;
}

.points li:nth-child(1) .mark { height: 10px; }
.points li:nth-child(2) .mark { height: 16px; }
.points li:nth-child(3) .mark { height: 22px; }

.points strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.points p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.cta {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  animation: ctaGlow 2.2s ease-in-out infinite;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.42) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: ctaShine 2.8s ease-in-out infinite;
}

.cta svg,
.popup-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cta svg {
  position: relative;
  z-index: 1;
  animation: ctaNudge 1.5s ease-in-out infinite;
}

.cta:active {
  transform: translateY(1px);
}

@keyframes ctaGlow {
  0%, 100% {
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.16);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(17, 17, 17, 0.08),
      0 16px 32px rgba(17, 17, 17, 0.28);
  }
}

@keyframes ctaShine {
  0%, 42% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes ctaNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .cta::before,
  .cta svg { animation: none; }
}

.foot {
  width: 100%;
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.links button {
  border: 0;
  padding: 0;
  background: none;
  color: #6d675e;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.copy {
  margin: 12px 0 0;
  color: #8a847a;
  font-size: 12px;
}

.ads {
  margin: 14px 0 0;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ads a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.popup {
  width: min(360px, calc(100% - 32px));
  margin: auto;
  padding: 22px 20px 18px;
  border: 0;
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.22);
  text-align: center;
}

.popup::backdrop {
  background: rgba(17, 17, 17, 0.48);
}

.popup-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}

.popup h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.popup p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.popup-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  min-height: 48px;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-cancel {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #d5cfc4;
}

.btn-join {
  background: #229ed9;
  color: #fff;
  border: 0;
}

.btn:active {
  transform: translateY(1px);
}

.sheet {
  width: min(360px, calc(100% - 32px));
  margin: auto;
  padding: 22px 20px 18px;
  border: 0;
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.22);
  text-align: left;
}

.sheet::backdrop {
  background: rgba(17, 17, 17, 0.48);
}

.sheet h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.sheet p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.sheet-close {
  width: 100%;
  margin-top: 18px;
}
