/* ============================================================
   WISTERIA · CLOSING CTA + SITE FOOTER
   Owns:  src/sections/cta.html   (.cta__…)
          src/sections/footer.html (.footer__…)
   Tokens only. Nothing here redefines a shared primitive.
   ============================================================ */

/* ============================================================
   1 · CLOSING CTA
   Bone surface, wisteria bloom wash — echoes the hero and
   closes the loop before the dark footer lands.
   ============================================================ */

.cta {
  position: relative;
  overflow: hidden;                 /* bloom must never widen the page */
  text-align: center;
  padding-block: clamp(6rem, 12vw, 11rem) clamp(5rem, 10vw, 9rem);
  background: linear-gradient(180deg, var(--w-bone) 0%, var(--w-bone-2) 100%);
  isolation: isolate;
}

/* The bloom wash. Soft, wide, low-contrast — atmosphere, not decoration. */
.cta__wash {
  position: absolute;
  left: 50%;
  top: -26%;
  width: min(1320px, 160%);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: var(--grad-bloom);
  opacity: .22;
  filter: blur(48px);
  pointer-events: none;
  z-index: -2;
}

/* A single soft petal form drifting behind the type. */
.cta__petal {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: min(420px, 62vw);
  aspect-ratio: 1 / 1.24;
  border-radius: 62% 38% 54% 46% / 44% 52% 48% 56%;
  background: var(--grad-violet);
  opacity: .10;
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

.cta__inner { position: relative; }

.cta__eyebrow { justify-content: center; margin-bottom: clamp(1.25rem, 2.4vw, 1.9rem); }

.cta__title {
  max-width: 16ch;
  margin-inline: auto;
  color: var(--w-ink);
}

.cta__lead { margin-top: clamp(1.15rem, 2.2vw, 1.6rem); }

/* ---- Store block ---------------------------------------- */
.cta__store {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.cta__soon { letter-spacing: .01em; }
.cta__soon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
  flex: none;
}

.cta__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* At rest by design: a badge you cannot press because there is
   nothing to press yet. Legible, composed, never "broken". */
.cta__badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .72rem 1.15rem .72rem 1rem;
  min-width: 178px;
  border-radius: var(--r-md);
  background: var(--w-ink);
  color: var(--on-dark);
  box-shadow: var(--sh-sm);
  user-select: none;
}

.cta__badge-mark { width: 24px; height: 24px; flex: none; opacity: .95; }

.cta__badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}
.cta__badge-kicker {
  font-size: .625rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: .28em;
}
.cta__badge-name {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.cta__notify { margin-top: .35rem; }
.cta__notify-link { color: var(--text-2); }
.cta__notify-link:hover { color: var(--text); }

.cta__fine {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  font-size: var(--t-xs);
  line-height: 1.7;
  color: var(--text-3);
  max-width: 46ch;
  margin-inline: auto;
  text-wrap: balance;
}

@media (max-width: 520px) {
  .cta__badge { min-width: 0; flex: 1 1 100%; justify-content: center; }
}

/* ============================================================
   2 · FOOTER
   ============================================================ */

.footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(1.75rem, 3vw, 2.5rem);
  isolation: isolate;
}

.footer__wash {
  position: absolute;
  left: -10%;
  top: -60%;
  width: min(900px, 110%);
  aspect-ratio: 1 / 1;
  background: radial-gradient(50% 50% at 50% 50%, var(--w-wisteria) 0%, transparent 70%);
  opacity: .16;
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.footer__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

/* ---- Brand block ---------------------------------------- */
.footer__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .16em;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 26, "WONK" 1, "opsz" 100;
  letter-spacing: -0.028em;
  line-height: 1;
  color: var(--on-dark);
  transition: color var(--dur-fast) var(--ease-soft);
}
.footer__wordmark:hover { color: var(--w-wisteria-lt); }

.footer__dot {
  width: .28em;
  height: .28em;
  border-radius: 50%;
  background: var(--w-terra-lt);
  flex: none;
  transform: translateY(-.02em);
}

.footer__descriptor {
  margin-top: 1.05rem;
  max-width: 34ch;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--on-dark-2);
}

.footer__by {
  margin-top: .85rem;
  font-size: var(--t-xs);
  color: var(--on-dark-3);
}

/* ---- Link columns --------------------------------------- */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--on-dark-3);
  line-height: 1;
  margin-bottom: 1.15rem;
}

.footer__list { display: grid; gap: .7rem; }

/* Tasteful equivalent of base.css .link — the underline sweeps
   in on hover rather than sitting there permanently. */
.footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: var(--t-sm);
  color: var(--on-dark-2);
  transition: color var(--dur-fast) var(--ease-soft);
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.footer__link:hover { color: var(--on-dark); }
.footer__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- Bottom bar ----------------------------------------- */
.footer__rule {
  margin-block: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 2.5vw, 2rem);
  background: var(--border-dark);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  font-size: var(--t-xs);
  color: var(--on-dark-3);
}

.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.footer__domain { letter-spacing: .01em; }

.footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6em;
  padding: .35em .6em;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border-dark);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--on-dark-2);
}

/* ---- Layout up ------------------------------------------ */
@media (min-width: 720px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }
}
