/* Coming-soon page: one quiet, deliberate screen in the brand's black, white and greys.
   On computers a field of tiny beads fills the background and the beads near the
   pointer brighten; phones get a plain black stage. All text is pure white. The headline materialises out of a blur, and the preview password is a glass pill
   that widens into a field. Always dark (the bead light needs a dark stage), using the store's dark tokens. */

.gf-soon {
  --ease: cubic-bezier(.23, 1, .32, 1);       /* strong ease-out for arrivals */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);  /* iOS-like for the pill */
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── The bead field ─────────────────────────────────────────── */
.gf-soon-field {
  --mx: 50vw; --my: 45svh;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  animation: gfSoonFade 1600ms var(--ease) both;
}
.gf-soon-beads {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 20%, transparent) 1.1px, transparent 1.7px);
  background-size: 18px 18px;
  background-position: center;
  /* beads fade out toward the edges of the screen */
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, #000 15%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, #000 15%, transparent 78%);
}
.gf-soon-beads-lit {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 55%, transparent) 1.2px, transparent 1.8px);
  -webkit-mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000, transparent);
          mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000, transparent);
}

.gf-soon-top, .gf-soon-main, .gf-soon-foot { position: relative; z-index: 1; }

/* ── Logo ───────────────────────────────────────────────────── */
.gf-soon-top { display: flex; justify-content: center; padding: clamp(28px, 6vh, 56px) 20px 0; }
.gf-soon-logo {
  display: block;
  height: 40px;
  aspect-ratio: 698 / 360;
  background-color: currentColor;
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
          mask: url("../img/logo.png") center / contain no-repeat;
  animation: gfSoonFade 900ms var(--ease) both;
}

/* ── Message ────────────────────────────────────────────────── */
.gf-soon-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 24px;
}
.gf-soon-eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
  animation: gfSoonRise 900ms var(--ease) 60ms both;
}
.gf-soon-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.gf-soon-line {
  display: block;
  color: #fff;
  animation: gfSoonMaterialize 1100ms var(--ease) var(--d, 140ms) both;
}
.gf-soon-sub {
  margin-top: 22px;
  max-width: 30ch;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.45;
  letter-spacing: -.012em;
  color: #fff;
  animation: gfSoonRise 1000ms var(--ease) 420ms both;
}
[dir="rtl"] .gf-soon-title { letter-spacing: 0; line-height: 1.3; font-size: clamp(40px, 7vw, 88px); }
[dir="rtl"] .gf-soon-sub, [dir="rtl"] .gf-soon-eyebrow { letter-spacing: 0; }

/* ── Preview password: a glass pill that widens into the field ── */
.gf-soon-pass {
  position: relative;
  margin-top: clamp(32px, 5vh, 44px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: gfSoonRise 1000ms var(--ease) 540ms both;
}
.gf-soon-pill {
  height: 50px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
}

/* Closed: the "Have a password?" pill. Open: the field, a little wider. Both share one spot. */
.gf-soon-pass-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 220ms ease, transform 450ms var(--ease-drawer), background-color 160ms ease;
}
.gf-soon-lock { flex-shrink: 0; margin-top: -2px; } /* solid lock, optically centred on the text */
@media (hover: hover) and (pointer: fine) {
  .gf-soon-pass-toggle:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
}
.gf-soon-pass-toggle:active { transform: scale(.97); transition-duration: 100ms; }
.gf-soon-pass-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.gf-soon-pass-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(360px, calc(100vw - 48px));
  padding: 5px 5px 5px 20px;
  transition: opacity 260ms ease, transform 500ms var(--ease-drawer), box-shadow 180ms ease;
}
[dir="rtl"] .gf-soon-pass-form { padding: 5px 20px 5px 5px; }

/* With JavaScript the two swap in place; without it, only the field shows */
.gf-soon-pass.is-ready { min-height: 82px; }
.gf-soon-pass.is-ready .gf-soon-pass-toggle,
.gf-soon-pass.is-ready .gf-soon-pass-form { position: absolute; top: 0; left: 50%; translate: -50% 0; }
.gf-soon-pass:not(.is-ready) .gf-soon-pass-toggle { display: none; }
.gf-soon-pass.is-ready .gf-soon-err { margin-top: 62px; }
.gf-soon-pass.is-ready .gf-soon-pass-form { opacity: 0; transform: scaleX(.55) scaleY(.92); pointer-events: none; }
.gf-soon-pass.is-ready.is-open .gf-soon-pass-form { opacity: 1; transform: none; pointer-events: auto; }
.gf-soon-pass.is-ready.is-open .gf-soon-pass-toggle { opacity: 0; transform: scaleX(1.25); pointer-events: none; }

/* The field itself: the site's form styles are reset so it sits cleanly inside the pill */
.gf-soon .gf-soon-pass-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  -webkit-appearance: none;
          appearance: none;
  color: #fff;
  font: inherit;
  font-size: 16px; /* 16px keeps iPhone from zooming in */
  letter-spacing: .02em;
}
.gf-soon .gf-soon-pass-form input::placeholder { color: rgba(255, 255, 255, .55); letter-spacing: -.01em; }
.gf-soon .gf-soon-pass-form input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  transition: background-color 99999s;
}
.gf-soon-pass-form:focus-within {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 30%, transparent), 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent);
}

.gf-soon-go {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transition: transform 100ms ease-out, opacity 150ms ease;
}
.gf-soon-go:active { transform: scale(.92); }
.gf-soon-go:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
[dir="rtl"] .gf-soon-go svg { transform: scaleX(-1); }

/* Wrong password: the field shakes once, like a Mac login, and the message appears below */
.gf-soon-err { min-height: 20px; margin-top: 12px; font-size: 14px; color: var(--danger); }
.gf-soon-pass.is-error .gf-soon-pass-form { box-shadow: inset 0 0 0 1px var(--danger); }
.gf-soon-pass.is-ready.is-error .gf-soon-pass-form { animation: gfSoonShake 420ms cubic-bezier(.36, .07, .19, .97) 700ms both; }

/* ── Footer ─────────────────────────────────────────────────── */
.gf-soon-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: #fff;
  animation: gfSoonFade 1200ms var(--ease) 700ms both;
}
.gf-soon-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.gf-soon-link, .gf-soon-langs a { color: #fff; text-decoration: none; transition: color 150ms ease; }
.gf-soon-langs { display: flex; gap: 14px; }
.gf-soon-langs a[aria-current] { color: #fff; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .gf-soon-link:hover, .gf-soon-langs a:hover { color: #fff; }
}
.gf-soon-link:focus-visible, .gf-soon-langs a:focus-visible { color: #fff; outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

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

/* ── Motion ─────────────────────────────────────────────────── */
@keyframes gfSoonFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gfSoonRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gfSoonMaterialize { from { opacity: 0; transform: translateY(16px); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes gfSoonShake {
  10%, 90% { translate: calc(-50% - 2px) 0; }
  20%, 80% { translate: calc(-50% + 4px) 0; }
  30%, 50%, 70% { translate: calc(-50% - 7px) 0; }
  40%, 60% { translate: calc(-50% + 7px) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gf-soon-line, .gf-soon-eyebrow, .gf-soon-sub, .gf-soon-pass { animation: gfSoonFade 400ms ease both; }
  .gf-soon-pass.is-ready.is-error .gf-soon-pass-form { animation: none; }
  .gf-soon-pass.is-ready .gf-soon-pass-form, .gf-soon-pass.is-ready.is-open .gf-soon-pass-toggle { transform: none; }
  .gf-soon-pass-toggle:active, .gf-soon-go:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .gf-soon-pill { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--text) 10%, var(--bg)); }
}
@media (prefers-contrast: more) {
  .gf-soon-pill { box-shadow: inset 0 0 0 1px var(--text); }
}

/* Phones and tablets: no bead field, just the black stage */
@media (max-width: 600px), (hover: none) {
  .gf-soon-field { display: none; }
}
