@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #080f2a;
  --ink: #111d3b;
  --muted: #4d5b77;
  --gold: #ffd568;
  --paper: #f5f6fc;
  --line: #dce3f2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.hero {
  color: #fff;
  background: radial-gradient(ellipse at 89% 100%, #2159d8 0%, #122c76 40%, #080f2a 79%);
  padding-bottom: 62px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid #afc4ff38;
}
.masthead img { width: 96px; height: 27px; object-fit: contain; }
.masthead p { color: #dce8ff; font-size: .8rem; font-weight: 800; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "copy action" "copy proof" ". followup";
  align-items: center;
  gap: 20px clamp(28px, 6vw, 92px);
  padding-top: 52px;
}
.hero-copy { grid-area: copy; }
.hero-action { grid-area: action; align-self: start; }
.hero-followup { grid-area: followup; }
h1, h2, h3 { font-weight: 800; }
.hero h1 {
  font-size: clamp(3.25rem, 6vw, 5.45rem);
  line-height: .99;
  letter-spacing: -.065em;
}
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.intro {
  max-width: 32ch;
  margin-top: 16px;
  color: #e0e9ff;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  font-weight: 600;
  line-height: 1.48;
}

.join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 11px;
  min-height: 62px;
  border-radius: 999px;
  font-size: 1.16rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
}
.join svg { flex: none; width: 27px; height: 27px; }
.join:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.join-face {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: inherit;
  width: 100%;
  min-height: inherit;
  padding: 12px;
  border-radius: inherit;
  background: #49e886;
  color: #0a281a;
  transition: background-color .18s ease;
}
.join:hover .join-face { background-color: #68f39b; }
.join:active .join-face { background-color: #35d574; }

@media (prefers-reduced-motion: no-preference) {
  .hero-action .join-face {
    position: relative;
    overflow: hidden;
    animation: group-join-hop 2.2s linear .3s infinite;
  }

  .hero-action .join-face > * { position: relative; }

  .hero-action .join-face::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(113deg, transparent 32%, #ffffff60 50%, transparent 68%);
    transform: translateX(-100%);
    animation: group-join-shine 3.8s linear .75s infinite;
  }

  @keyframes group-join-hop {
    0%, 100% { transform: none; }
    0% { animation-timing-function: ease-out; }
    4.8% {
      transform: scale(1.008, .975);
      animation-timing-function: cubic-bezier(.18, .68, .32, 1);
    }
    15.7% {
      transform: translateY(-7px) scale(1.022, 1.055);
      animation-timing-function: cubic-bezier(.42, 0, .35, 1);
    }
    31.4% { transform: none; }
  }

  @keyframes group-join-shine {
    0% { transform: translateX(-100%); }
    21%, 100% { transform: translateX(100%); }
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.group-preview {
  grid-area: proof;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #9ab2ec55;
  border-radius: 20px;
  background: radial-gradient(ellipse at 100% 90%, #193468, #102041 68%);
  box-shadow: 0 24px 58px #050c2859;
}
.group-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #9ab2ec40;
  background: #122448;
}
.group-preview-header img { flex: none; border-radius: 50%; }
.group-preview-header h2 { color: #fff; font-size: .94rem; line-height: 1.2; }
.group-preview-caption { margin-top: 3px; color: #c8ddff; font-size: .72rem; font-weight: 700; }
.group-preview-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 14px 8px;
  list-style: none;
}
.group-preview-message {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 9px 7px 7px;
  border: 1px solid #aac7ff38;
  border-radius: 4px 12px 12px 12px;
  background: #1b3461;
  color: #f3f7ff;
}
.group-preview-message:first-child {
  border-color: #96eecb70;
  background: #204747;
}
.group-preview-message img {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}
.group-preview-message img[hidden] { display: none; }
.group-preview-message > div { grid-column: 2; }
.group-preview-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  font-size: .83rem;
  font-weight: 750;
  line-height: 1.24;
}
.group-preview-details { display: grid; gap: 3px; margin-top: 4px; }
.group-preview-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px 7px;
}
.group-preview-saving {
  position: relative;
  isolation: isolate;
  padding: 2px 5px;
  border-radius: 5px;
  background: #ffd77814;
  color: #ffe7ac;
  font-size: .78rem;
  line-height: 1.25;
}
.group-preview-saving::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, #60430d, #77531c 44%, #60430d 62%) 100% 0 / 260% 100%;
  opacity: 0;
  pointer-events: none;
}
.group-preview-saving b { color: #ffdc80; font-size: .95rem; font-weight: 800; white-space: nowrap; }
.group-preview-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}
.group-preview-prices del { color: #d2e1fa; font-size: .73rem; white-space: nowrap; }
.group-preview-prices strong { color: #a3ffbd; font-size: .97rem; font-weight: 800; white-space: nowrap; }
.group-preview-condition { color: #d2e1fa; font-size: .72rem; line-height: 1.3; }
.group-preview-discount {
  padding: 1px 5px;
  border-radius: 4px;
  background: #ffda78;
  color: #372600;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}
.group-preview-meta time { margin-left: auto; color: #d2e1fa; font-size: .67rem; font-weight: 650; white-space: nowrap; }
.group-preview-note { margin: 0 14px 10px; color: #c8d8f6; font-size: .72rem; line-height: 1.35; font-weight: 650; }
@keyframes group-photo-pop {
  0% { transform: none; box-shadow: none; }
  36% { transform: translate(-2px, -6px) rotate(-7deg) scale(var(--group-photo-peak, 1.25)); box-shadow: 0 8px 16px #07142b8c; }
  66% { transform: translateY(1px) rotate(3deg) scale(1.04); }
  100% { transform: var(--group-photo-rest, none); box-shadow: var(--group-photo-shadow, none); }
}

@keyframes group-saving-shine {
  0% { background-position: 100% 0; opacity: 0; }
  24% { opacity: 1; }
  72% { background-position: 0 0; opacity: 1; }
  100% { background-position: 0 0; opacity: 0; }
}

@keyframes group-offer-arrival {
  0% { transform: translateX(-18px); border-color: #559dff; box-shadow: 0 0 0 2px #559dff80; }
  36% { transform: translateX(2px); border-color: #ffd773; box-shadow: 0 0 0 2px #ffd773b3, 0 0 18px #438bff85; }
  67% { transform: none; border-color: #ffd773; box-shadow: 0 0 13px #438bff70; }
  100% { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .group-preview-arrival { animation: group-offer-arrival .95s ease-out; }
  .group-preview-arrival img {
    --group-photo-peak: 1.3;
    z-index: 1;
    animation: group-photo-pop .7s ease-out .13s both;
  }
  .group-preview-arrival .group-preview-saving::before { animation: group-saving-shine .83s ease-out .1s both; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .group-preview-message img { transition: transform .22s ease-out, box-shadow .22s ease-out; }
  .group-preview-message:hover:not(.group-preview-arrival) img {
    --group-photo-rest: translate(-1px, -3px) rotate(-3deg) scale(1.12);
    --group-photo-shadow: 0 5px 10px #07142b70;
    z-index: 1;
    transform: var(--group-photo-rest);
    box-shadow: var(--group-photo-shadow);
    animation: group-photo-pop .5s ease-out;
  }
  .group-preview-message:hover:not(.group-preview-arrival) .group-preview-saving::before {
    animation: group-saving-shine .7s ease-out .08s;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference),
       (hover: none) and (prefers-reduced-motion: no-preference) {
  .group-preview-reveal img { z-index: 1; animation: group-photo-pop .55s ease-out; }
  .group-preview-reveal .group-preview-saving::before { animation: group-saving-shine .68s ease-out .08s; }
}
footer { border-top: 1px solid var(--line); color: var(--muted); }
footer .wrap { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
footer img { flex: none; object-fit: contain; }
footer p { font-size: .76rem; font-weight: 600; line-height: 1.45; }

@media (max-width: 760px) {
  .wrap { width: min(520px, calc(100% - 36px)); }
  .hero { padding-bottom: 25px; }
  .masthead { gap: 10px; padding-block: 13px; }
  .masthead img { width: 83px; height: 24px; }
  .masthead p { font-size: .72rem; text-align: right; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "action" "proof" "followup";
    gap: 15px;
    padding-top: 17px;
  }
  .hero h1 { font-size: clamp(2.45rem, 10vw, 4.4rem); }
  .intro { margin-top: 8px; font-size: .94rem; line-height: 1.4; }
  .group-preview { border-radius: 17px; }
  .group-preview-header, .group-preview-list { padding-inline: 10px; }
  .group-preview-note { margin-inline: 10px; }
  footer .wrap { align-items: flex-start; gap: 11px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .masthead p { font-size: .66rem; }
  .join { font-size: 1.07rem; }
  .group-preview-saving { font-size: .74rem; }
  .group-preview-saving b { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .join-face { transition: none; }
}

.privacy-choice[hidden] { display: none; }
.privacy-choice {
  display: grid;
  gap: 10px;
  margin-block: 14px 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: .8rem;
  line-height: 1.5;
}
.privacy-choice a { color: #264fa3; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.privacy-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #becce8;
  border-radius: 8px;
  background: #f4f7ff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.privacy-settings {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: .76rem;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
footer .wrap { flex-wrap: wrap; }
