/* The Android waiting-list page (/{lang}/android/), written by
   scripts/build_android_waitlist.py. styles.css underneath for the fonts,
   colours and h1. */

.aw-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
}

/* Android green and the site blue, blurred behind everything. */
.aw-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 78% 40%, rgba(61, 220, 132, 0.22), transparent 70%),
    radial-gradient(36rem 28rem at 12% 10%, rgba(70, 164, 248, 0.20), transparent 70%);
}

.aw-top,
.aw-main {
  position: relative;
  z-index: 1;
}

.aw-top {
  padding: 1.25rem 2rem;
}

.aw-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.aw-logo img {
  width: 40px;
  height: 40px;
}

.aw-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 3rem;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.aw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 132, 0.45);
  background: rgba(61, 220, 132, 0.1);
  color: #3ddc84;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.aw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  animation: aw-pulse 1.8s ease-in-out infinite;
}

@keyframes aw-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
}

.aw-copy h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
}

.aw-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.aw-form {
  display: flex;
  gap: 0.6rem;
  max-width: 34rem;
  padding: 0.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.aw-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.aw-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.aw-form input[type="email"]:focus {
  outline: 2px solid rgba(61, 220, 132, 0.7);
  outline-offset: 0;
}

.aw-form button {
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 12px;
  background: #3ddc84;
  color: #04210f;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.aw-form button:hover:not(:disabled) {
  background: #5ce69a;
  transform: translateY(-1px);
}

.aw-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.aw-form.done {
  display: none;
}

.aw-hp,
.aw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.aw-status {
  min-height: 1.5rem;
  margin-top: 0.8rem;
  font-weight: 600;
  max-width: 34rem;
}

.aw-status.ok {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.45);
  color: #b8f5d2;
}

.aw-status.ok::before {
  content: "✓";
  display: inline-block;
  margin-inline-end: 0.5rem;
  color: #3ddc84;
}

.aw-status.err {
  color: #ff8a8a;
}

.aw-note {
  color: var(--text-gray);
  font-size: 0.88rem;
  margin-top: 0.4rem;
  max-width: 34rem;
}

.aw-back {
  display: inline-block;
  margin-top: 2rem;
  color: #7ec8f4;
  text-decoration: none;
  font-weight: 600;
}

.aw-back:hover {
  text-decoration: underline;
}

/* A generic phone, the widget on its home screen, and the builder mascot. */
.aw-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}

.aw-phone {
  position: relative;
  width: 250px;
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #3a3a44, #121218);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: rotate(-4deg);
  animation: aw-float 6s ease-in-out infinite;
}

@keyframes aw-float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}

.aw-camera {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #000;
  z-index: 2;
}

.aw-screen {
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(170deg, #1f6f55 0%, #18405f 55%, #1b1b3a 100%);
}

.aw-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  direction: ltr;
}

.aw-bar-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.aw-bar-icons svg {
  display: block;
  fill: #fff;
}

/* Medium widget: 2.14:1 like iOS's 338×158, the app's light-mode gradient,
   white word, light-blue translation (189, 223, 255), and the plain mascot
   peeking in from the bottom-left corner, clipped by the widget's edge. */
.aw-widget {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  aspect-ratio: 338 / 158;
  border-radius: 18px;
  background: linear-gradient(to bottom, #5393d3, #255488);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  direction: ltr;
}

.aw-widget-mascot {
  position: absolute;
  left: -12px;
  bottom: -14px;
  width: 54px;
  height: 54px;
  transform: rotate(12deg);
}

.aw-word {
  position: relative;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.aw-meaning {
  position: relative;
  margin-top: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgb(189, 223, 255);
}

.aw-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 4px;
}

.aw-apps i,
.aw-dock i {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.9;
}

.aw-dock {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 10px 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
}

.aw-dock i {
  background: rgba(255, 255, 255, 0.75);
}

/* Android's gesture-navigation handle. */
.aw-gesture {
  width: 38%;
  height: 4px;
  margin: -6px auto 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}

.aw-mascot {
  position: absolute;
  bottom: 0;
  inset-inline-start: calc(50% - 210px);
  width: 150px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.aw-badge {
  position: absolute;
  top: 12%;
  inset-inline-end: calc(50% - 215px);
  height: 46px;
  transform: rotate(6deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

@media (max-width: 900px) {
  .aw-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 1rem 16px 3rem;
    text-align: center;
  }

  .aw-top {
    padding: 1rem 16px;
  }

  .aw-copy {
    order: 2;
  }

  .aw-visual {
    order: 1;
  }

  .aw-lead,
  .aw-form,
  .aw-status,
  .aw-note {
    margin-inline: auto;
  }

  .aw-phone {
    width: 190px;
  }

  .aw-mascot {
    width: 105px;
    inset-inline-start: calc(50% - 150px);
  }

  .aw-badge {
    height: 38px;
    inset-inline-end: calc(50% - 160px);
  }
}

@media (max-width: 480px) {
  .aw-form {
    flex-direction: column;
  }

  .aw-mascot {
    inset-inline-start: 0;
  }

  .aw-badge {
    inset-inline-end: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-phone,
  .aw-dot {
    animation: none;
  }
}
