:root {
  --brand: #e50946;
  --brand-dark: #bc0639;
  --pink: #ffd2e2;
  --pink-soft: #fff2f6;
  --ink: #151515;
  --muted: #5f5f66;
  --paper: #fffdfd;
  --line: #111111;
  --shadow: 0 24px 70px rgba(0, 0, 0, .16);
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(229, 9, 70, .14), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(255, 210, 226, .9), transparent 30rem),
    #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
}

a { color: inherit; }

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) clamp(14px, 4vw, 28px) max(14px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}

.card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 7px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4.5vw, 34px) clamp(16px, 4vw, 28px) 16px;
  isolation: isolate;
}

.hero {
  position: relative;
  z-index: 2;
  text-align: center;
}

.logo {
  width: clamp(96px, 30vw, 132px);
  max-width: 132px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 10.5vw, 60px);
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.subtitle {
  max-width: 330px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.35;
  font-weight: 650;
}

.actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin: 22px 0 16px;
}

.btn {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 15px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 7px 0 var(--ink);
  transform: translateY(0);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn:focus-visible {
  outline: 4px solid var(--pink);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 7px 0 var(--brand-dark);
}

.btn strong {
  display: block;
  font-size: clamp(17px, 4vw, 18px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.02em;
}

.btn small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  color: currentColor;
  opacity: .72;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: currentColor;
}

.icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.note {
  position: relative;
  z-index: 2;
  margin: 4px 0 14px;
  padding: 14px;
  border: 2px dashed var(--brand);
  border-radius: 18px;
  background: var(--pink-soft);
  text-align: center;
}

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

.note p:first-child {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-top: 2px;
  color: #767676;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.footer a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

.decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.decor-top {
  top: -54px;
  left: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 18px 36px 0 var(--pink);
}

.decor-bottom {
  right: -58px;
  bottom: -64px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: -18px -28px 0 var(--pink);
}

.dots {
  position: absolute;
  z-index: 1;
  width: 112px;
  height: 112px;
  opacity: .7;
  background-image: radial-gradient(var(--brand) 1.7px, transparent 1.7px);
  background-size: 12px 12px;
  pointer-events: none;
}

.dots-a { right: 14px; top: 15px; }
.dots-b { left: -28px; bottom: 132px; }

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 0 var(--ink);
  }

  .btn-primary:hover {
    box-shadow: 0 9px 0 var(--brand-dark);
  }
}

@media (max-width: 380px) {
  .shell { padding: 10px; }
  .card { border-width: 6px; padding: 20px 14px 14px; }
  .logo { width: 92px; margin-bottom: 8px; }
  h1 { font-size: 36px; }
  .subtitle { margin-top: 12px; }
  .actions { gap: 11px; margin: 20px 0 15px; }
  .btn { grid-template-columns: 44px 1fr; min-height: 64px; padding: 11px 12px; }
  .icon { width: 44px; height: 44px; }
  .btn strong { font-size: 17px; }
  .btn small { font-size: 11px; }
}

@media (max-height: 720px) and (max-width: 430px) {
  .shell { align-items: start; }
  .card { margin: 0; }
  .logo { width: 88px; }
  h1 { font-size: 34px; }
  .subtitle { margin-top: 10px; font-size: 14px; }
  .actions { margin: 18px 0 14px; gap: 10px; }
  .btn { min-height: 60px; border-width: 2.5px; box-shadow: 0 5px 0 var(--ink); }
  .btn-primary { box-shadow: 0 5px 0 var(--brand-dark); }
  .note { padding: 12px; }
}

@media (min-width: 700px) {
  .shell { width: min(100%, 560px); }
  .card { padding: 34px 28px 18px; }
}

@media (min-width: 900px) {
  .shell { width: min(100%, 540px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
