/* =============================================================================
   Georgix "coming soon" home page (Hebrew, RTL). Loaded after site.css, which owns the
   tokens (navy, teal, soft, mist, rule), the Rubik @font-face rules, the link rules and the
   header/footer frame shared with the legal pages. This file only restyles the home page:
   every rule is scoped under .soon, so privacy/, terms/ and data-deletion/ are unaffected.

   Visual language: the Georgix NFC brand kit (icon B+G and the covers): navy ground, teal as the
   only accent, a light phone, and concentric echo rings behind the symbol.
   CSP: external stylesheet only, no inline styles, no scripts, nothing outside 'self'.
   ============================================================================= */

.soon {
  --wide: 76rem;
  --teal-bright: #2cc2a2; /* button hover: same hue as teal, one step lighter */
  --echo: #1a2646; /* the echo rings of the brand covers: a faint tint of the navy */
  --ring-period: 8s;
  --ring-ease: cubic-bezier(0.25, 0.5, 0.35, 1);
  --target: 2.75rem; /* minimum touch target: 44px */
}

/* ---- Browser surfaces themed from the palette ------------------------------ */
::selection {
  background: var(--teal);
  color: var(--navy);
}
html {
  scrollbar-color: var(--rule) var(--navy);
}

/* ---- Frame: header, main and footer share one wide column ------------------ */
/* The page wrapper clips the echo rings, which spill far beyond the illustration. */
.soon-page {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  overflow: hidden;
}
/* Everything that carries text sits above the rings. */
.soon .site-header,
.soon .site-footer,
.soon-copy {
  position: relative;
  z-index: 1;
}

.soon .site-header,
.soon .site-main,
.soon .site-footer {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2));
}

.soon .site-header {
  border-bottom: 0;
  padding-block: 1rem;
}

.soon .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 2rem;
  padding-block: 0.25rem;
}
.soon .site-footer ul {
  margin: 0;
  gap: 0 1.5rem;
}
.soon .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

/* ---- Main: copy and stage ---------------------------------------------------- */
.soon .site-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* One column: the copy row takes the slack, the stage sits below it. */
  grid-template-rows: 1fr auto;
  padding-block: 0;
}

.soon-copy {
  align-self: center;
  max-width: 36rem;
  padding-block: 1rem 1.5rem;
}

.soon-status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
.soon-status__dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
}

.soon h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.soon-accent {
  color: var(--teal);
}

.soon-lede {
  max-width: 30rem;
  margin: 1.5rem 0 0;
  color: var(--soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.soon-cta {
  display: grid;
  justify-items: start;
  gap: 0.875rem;
  margin-top: 2rem;
}
.soon-cta__note {
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.5;
}

/* Button: navy text on teal, never white on teal. Slightly rounded corners, like the brand symbol.
   The selector is a.soon-btn (not .soon-btn) so it outranks site.css's a[href^="http"] rule. */
.soon a.soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding-inline: 1.5rem;
  border-radius: 0.25rem;
  background: var(--teal);
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  /* site.css isolates every https link left-to-right (for URLs in text); a button label is Hebrew. */
  direction: rtl;
  unicode-bidi: normal;
  transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}
.soon a.soon-btn:hover {
  background: var(--teal-bright);
  color: var(--navy);
}
.soon a.soon-btn:active {
  transform: translateY(1px);
}
.soon a.soon-btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.soon-btn__icon {
  flex: none;
  display: block;
}

/* ---- Stage: the symbol of the brand kit, with echo rings behind it -------------- */
.soon-stage {
  position: relative;
  /* Sized from the width, not the viewport height, so the page height is stable on every phone. */
  height: min(17rem, 72vw);
}
.stage-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible; /* the rings run on past the box; .soon-page clips them at the page edge */
}

.art-card {
  fill: var(--teal);
}
.art-phone {
  fill: var(--mist);
}
.art-speaker {
  fill: var(--navy);
}
/* The navy cut-outs of the symbol: arcs on the card, the gap around the phone, the squared G. */
.art-cut {
  fill: none;
  stroke: var(--navy);
}

/* Echo rings. Default (and reduced motion): five static rings, as on the covers.
   Every circle has the same radius in the markup; the scale below spreads them. */
.art-echo circle {
  stroke: var(--echo);
  stroke-width: 66px;
  transform-box: fill-box;
  transform-origin: center;
}
.art-echo circle:nth-child(1) {
  transform: scale(0.568);
}
.art-echo circle:nth-child(2) {
  transform: scale(0.789);
}
.art-echo circle:nth-child(3) {
  transform: scale(1.009);
}
.art-echo circle:nth-child(4) {
  transform: scale(1.23);
}
.art-echo circle:nth-child(5) {
  transform: scale(1.45);
}

@media (prefers-reduced-motion: no-preference) {
  /* Slow echo: each ring grows outward and fades, the five are spaced evenly in time. */
  .art-echo circle {
    opacity: 0;
    animation: echo-out var(--ring-period) var(--ring-ease) infinite;
  }
  .art-echo circle:nth-child(2) {
    animation-delay: calc(var(--ring-period) * -1 / 5);
  }
  .art-echo circle:nth-child(3) {
    animation-delay: calc(var(--ring-period) * -2 / 5);
  }
  .art-echo circle:nth-child(4) {
    animation-delay: calc(var(--ring-period) * -3 / 5);
  }
  .art-echo circle:nth-child(5) {
    animation-delay: calc(var(--ring-period) * -4 / 5);
  }
}
@keyframes echo-out {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* ---- Tablets: a larger symbol under the copy ---------------------------------- */
@media (min-width: 40rem) {
  .soon-stage {
    height: 26rem;
  }
}

/* ---- Wide screens: text on the inline-start side, the symbol on the other ------ */
@media (min-width: 56rem) {
  .soon .site-main {
    /* The text keeps the inline-start side of the wide column; the symbol fills the rest. */
    grid-template-columns: minmax(0, min(36rem, 48%)) minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .soon-copy {
    padding-block: 2rem 3rem;
  }
  .soon-stage {
    align-self: stretch;
    height: auto;
    min-height: 26rem;
  }
}

/* ---- Very wide screens: let the symbol grow with the screen --------------------- */
@media (min-width: 100rem) {
  .soon {
    --wide: 88rem;
  }
}
