:root {
  --page-bg: #f1f1f1;
  --ink: #1e1e1e;
  --green: #1b6c0a;
  --poncle-green: #00ee83;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
}

.page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

body.policy-body {
  display: block;
  overflow: auto;
}

body.transition-flash {
  animation: body-flash 1s ease-in-out;
}

.stage {
  position: relative;
  width: min(100vw, 177.7778vh);
  min-height: min(56.25vw, 100vh);
  height: auto;
  overflow: visible;
  background: var(--page-bg);
}

.signup-transition {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.transition-bar,
.transition-circle,
.transition-star {
  position: absolute;
  opacity: 0;
  will-change: opacity, transform;
}

.transition-bar {
  left: -18vw;
  top: 50%;
  width: 150vw;
  height: 24vh;
  border: 3px solid rgba(0, 0, 0, 0.28);
  transform-origin: 50% 50%;
  animation: old-bar-transition 1s ease-in-out both;
}

.transition-circle {
  width: var(--size);
  height: var(--size);
  left: var(--left);
  top: var(--top);
  border: 4px solid var(--stroke);
  border-radius: 50%;
  background: var(--fill);
  transform: translate(-50%, -50%) scale(0);
  animation: old-circle-transition 1s ease-in-out both;
}

.transition-star {
  width: var(--size);
  height: var(--size);
  left: var(--left);
  top: var(--top);
  background: var(--fill);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  filter: drop-shadow(0 0 0 var(--stroke)) drop-shadow(0 0 1px var(--stroke));
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  animation: old-star-transition 1s ease-in both;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 8.5% 0 clamp(6rem, 12vw, 9rem);
  background: var(--page-bg);
}

.raindrops-container {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 20vh;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 8%,
    #000 48%,
    rgba(0, 0, 0, 0.55) 68%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 8%,
    #000 48%,
    rgba(0, 0, 0, 0.55) 68%,
    transparent 100%
  );
  pointer-events: none;
  user-select: none;
}

.raindrop-wrapper {
  position: absolute;
  top: -28px;
  opacity: 0;
  will-change: opacity, transform;
}

.raindrop {
  width: clamp(10px, 1.35vw, 22px);
  height: auto;
  display: block;
}

.char {
  position: fixed;
  z-index: 4;
  right: 2.4vw;
  bottom: 3.2vh;
  width: clamp(42px, 5.2vw, 76px);
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
  user-select: none;
}

@keyframes falling {
  0% {
    opacity: 0;
    transform: translateY(-28px) scale(calc(var(--drop-scale, 1) * 1.12));
  }

  12% {
    opacity: 1;
  }

  58% {
    opacity: 0.88;
    transform: translateY(8vh) scale(calc(var(--drop-scale, 1) * 0.82));
  }

  82% {
    opacity: 0.28;
  }

  100% {
    opacity: 0;
    transform: translateY(18vh) scale(calc(var(--drop-scale, 1) * 0.38));
  }
}

@keyframes body-flash {
  0%,
  100% {
    background-color: var(--page-bg);
  }

  50% {
    background-color: #191970;
  }
}

@keyframes old-bar-transition {
  0% {
    opacity: 0;
    transform: rotate(-8deg) translateY(-125vh);
  }

  48% {
    opacity: 1;
    transform: rotate(var(--rotation)) translateY(0);
  }

  100% {
    opacity: 0;
    transform: rotate(-8deg) translateY(-125vh);
  }
}

@keyframes old-circle-transition {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }

  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--circle-scale));
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)))
      scale(0);
  }
}

@keyframes old-star-transition {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  90% {
    opacity: 1;
    transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)))
      rotate(520deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)))
      rotate(600deg) scale(0);
  }
}

@keyframes signup-success-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0.45em) scale(0.86) rotate(-1.5deg);
  }

  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1.05) rotate(0.8deg);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0);
  }
}

.logo-frame {
  width: 25vw;
  aspect-ratio: 3.35 / 1;
  margin-top: -0.7%;
  margin-bottom: 3.3%;
  overflow: hidden;
}

.logo {
  width: 100%;
  display: block;
  transform: translateY(-25.8%);
}

.counter {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 5.7vw;
  line-height: 1;
  letter-spacing: 0.105em;
  font-weight: 800;
  color: #1c1c1c;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.subline {
  margin: 3% 0 0;
  font-size: 1.56vw;
  letter-spacing: 0.03em;
  color: #4a4a4a;
  text-align: center;
}

.signup {
  position: relative;
  width: 44.5vw;
  margin-top: 3.2%;
  font-size: 0.94vw;
  font-weight: 700;
}

.signup-copy {
  margin: 0 0 4.2%;
  text-align: center;
  line-height: 1.25;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.15rem;
  margin-bottom: 3.2%;
}

input[type="email"] {
  width: 100%;
  height: 1.7rem;
  padding: 0 0.2rem 0.18rem;
  border: 0;
  border-bottom: 1px solid #3d3d3d;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

input[type="email"]:focus {
  border-bottom-color: var(--green);
}

button {
  height: 1.86vw;
  padding: 0 1.25vw;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 1.18vw;
  font-weight: 900;
  letter-spacing: 0.13em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #23870d;
}

.checkline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.48rem;
  margin-top: 2.5%;
  color: #5d5d5d;
  font-size: 0.77vw;
  line-height: 1.22;
}

.checkline input {
  width: 0.72rem;
  height: 0.72rem;
  margin: 0.02rem 0 0;
  appearance: none;
  border: 1px solid #8b8b8b;
  background: transparent;
}

.checkline input:checked {
  background: var(--green);
  box-shadow: inset 0 0 0 1px var(--page-bg);
}

.signup-status {
  position: relative;
  min-height: 1em;
  margin: 2.4% 0 0;
  color: var(--green);
  text-align: center;
  font-size: 0.8em;
  font-weight: 700;
}

.signup-status.is-success {
  position: absolute;
  z-index: 5;
  top: calc(100% + 1.4em);
  left: 50%;
  width: 118%;
  margin: 0;
  padding: 1.8em 1.4em 1.35em;
  border: 0;
  border-radius: 6px;
  background: rgb(194, 254, 63);
  color: #111;
  font-size: clamp(0.92rem, 1.62vw, 1.35rem);
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0.06em;
  box-shadow: none;
  transform: translateX(-50%);
  animation: signup-success-pop 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.signup-status.is-success span {
  position: absolute;
  top: -0.75em;
  left: 0.9em;
  display: inline-block;
  padding: 0.24em 0.74em;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-size: 0.72em;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signup-status.is-error {
  color: #9a1818;
}

a {
  color: inherit;
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.updates-section {
  width: 44.5vw;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding: 0 0 clamp(2rem, 4vw, 3.5rem);
  background: transparent;
}

.updates-inner {
  width: 100%;
}

.updates-heading-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(1.15rem, 2.2vw, 1.55rem);
  padding-top: clamp(1.65rem, 3vw, 3.15rem);
  border-top: 1px solid #111;
}

.updates-heading {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

.update-card {
  position: relative;
  left: 50%;
  display: grid;
  place-items: center;
  width: min(92vw, 64rem);
  min-height: 4rem;
  padding: 2.4rem 1.75rem 1.6rem;
  border-radius: 8px;
  background: #c2fe3f;
  text-align: center;
  transform: translateX(-50%);
}

.update-date {
  position: absolute;
  top: 0;
  left: 1.1rem;
  padding: 0.42em 0.82em;
  border-radius: 999px;
  background: #1b6c0a;
  color: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: clamp(0.72rem, 1.35vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  transform: translateY(-50%);
  white-space: nowrap;
  text-decoration: none;
}

.update-new {
  position: absolute;
  top: -0.55rem;
  right: 0.35rem;
  z-index: 2;
  padding: 0.42em 0.72em 0.36em;
  border-radius: 3px;
  background: #d81919;
  color: #fff;
  font-family: "Allerta Stencil", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(0.82rem, 1.55vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: rotate(12deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.update-text {
  margin: 0;
  font-size: clamp(0.92rem, 1.72vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.update-title {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-transform: uppercase;
}

.update-title:hover,
.update-title:focus-visible {
  color: inherit;
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .stage {
    min-height: 100svh;
    height: auto;
    width: 100vw;
    aspect-ratio: auto;
    overflow: visible;
  }

  .content {
    padding: 15.5vh 0 clamp(7rem, 26vw, 10rem);
    justify-content: flex-start;
  }

  .raindrops-container {
    height: 12vh;
  }

  .logo {
    width: 100%;
  }

  .logo-frame {
    width: min(72vw, 300px);
    margin-bottom: 1.8rem;
  }

  .counter {
    margin-top: 0;
    font-size: clamp(2.6rem, 12vw, 4.1rem);
    letter-spacing: 0.045em;
  }

  .subline {
    width: 90vw;
    margin-top: 1.15rem;
    font-size: clamp(0.95rem, 4.1vw, 1.25rem);
    line-height: 1.35;
  }

  .signup {
    width: min(88vw, 430px);
    margin-top: 1.65rem;
    font-size: clamp(0.82rem, 3.2vw, 1rem);
  }

  .signup-copy {
    line-height: 1.28;
  }

  .signup-status.is-success {
    width: 100%;
    top: calc(100% + 1rem);
    padding: 1.65em 1.1em 1.1em;
    font-size: clamp(0.82rem, 3.5vw, 1rem);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  input[type="email"] {
    height: 2.2rem;
    font-size: 1rem;
  }

  button {
    justify-self: center;
    height: 2.35rem;
    padding: 0 1.25rem;
    font-size: 0.95rem;
  }

  .checkline {
    gap: 0.62rem;
    margin-top: 0.85rem;
    font-size: clamp(0.62rem, 2.6vw, 0.78rem);
    line-height: 1.25;
  }

  .checkline input {
    width: 1rem;
    height: 1rem;
  }

  .char {
    right: 4vw;
    bottom: max(4vw, 1.35rem);
    width: clamp(44px, 12vw, 64px);
  }

  .page {
    padding-bottom: clamp(5rem, 16vw, 7rem);
  }

  .updates-section {
    width: min(88vw, 430px);
    margin-top: clamp(2rem, 8vw, 3rem);
    padding: 0 0 3rem;
  }

  .updates-inner {
    width: 100%;
  }

  .updates-heading-wrap {
    margin-bottom: 1.1rem;
    padding-top: 1.25rem;
  }

  .updates-heading {
    white-space: normal;
    font-size: clamp(1rem, 4.8vw, 1.35rem);
  }

  .update-card {
    width: min(96vw, 36rem);
    min-height: 6.5rem;
    padding: 2rem 1rem 1.25rem;
  }

  .update-date {
    left: 0.75rem;
    font-size: clamp(0.68rem, 3.1vw, 0.88rem);
  }

  .update-new {
    top: -0.45rem;
    right: 0.15rem;
    padding: 0.34em 0.58em 0.28em;
    font-size: clamp(0.72rem, 3.4vw, 0.92rem);
    transform: rotate(11deg);
  }

  .update-text {
    white-space: normal;
    font-size: clamp(0.82rem, 3.8vw, 1rem);
    line-height: 1.3;
  }
}
