/* ============================================================
   Khama — styles.css
   Globals: page chrome, nav (scroll-revealed), hero (with image),
   buttons, image-placeholder pattern, signup modal, footer,
   visualizer (preserved from prior build), wa-pill, motion.

   The site is mobile-first (90% of visitors). Desktop styles
   are layered via min-width: 720px and 1100px breakpoints.
   ============================================================ */

body { background: var(--paper); margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

:root {
  /* Override the warm-tan gold in colors_and_type.css with peach gold per brand */
  --gold:        #d4a574;
  --gold-soft:   #f0d8b6;
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-quick:     .25s var(--ease-out);
  --t-med:       .55s var(--ease-out);
  --t-slow:      .9s var(--ease-out);
  --nav-h:       64px;
}

*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--emerald-deep); color: #fff; }
img { max-width: 100%; display: block; }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0;
  width: 100%; height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress::after {
  content: "";
  position: absolute; top: 0; inset-inline-start: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold) 60%, var(--emerald-deep));
  transform: scaleX(var(--p, 0));
  transform-origin: right center; /* RTL */
  transition: transform .12s linear;
  will-change: transform;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== Keyframes (reusable) ===== */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scarf-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ===================== NAV — scroll-revealed ===================== */
/* Hero state: only brand visible, transparent bg, no nav frame.
   Scrolled state: full nav bar fades in with blurred blush bg. */
.nav {
  position: fixed; top: 0; inset-inline: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background .45s var(--ease-out),
    padding .45s var(--ease-out),
    border-color .45s var(--ease-out),
    backdrop-filter .45s var(--ease-out);
}
.nav .brand {
  display: inline-flex; align-items: center;
  height: 36px;
}
.nav .brand img {
  height: 100%; width: auto; display: block;
  /* Hero is burgundy, so wordmark renders bright by default. */
  filter: brightness(0) invert(1);
  opacity: .96;
  transition: filter .35s var(--ease-out), opacity .35s var(--ease-out), height .35s var(--ease-out);
}
.nav-links {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--font-ui); font-size: 14px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav-links a {
  color: var(--ink);
  position: relative;
  padding-block: 6px;
  transition: color var(--t-quick);
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; inset-inline-start: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: var(--emerald-deep); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: right center; }

.nav-cart {
  background: transparent;
  border: 1px solid rgba(26, 10, 16, .12);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), background var(--t-quick), color var(--t-quick), border-color var(--t-quick);
}
.nav-cart:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-cart-count {
  position: absolute;
  top: -4px; inset-inline-end: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--emerald-deep);
  color: #fff;
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.nav-cart-count[hidden] { display: none; }

/* Scrolled state: bar materializes */
.nav[data-nav-state="scrolled"] {
  background: rgba(254, 240, 240, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: rgba(26, 10, 16, 0.06);
  padding-block: 10px;
}
.nav[data-nav-state="scrolled"] .brand img {
  filter: none;
  opacity: 1;
}
.nav[data-nav-state="scrolled"] .nav-links,
.nav[data-nav-state="scrolled"] .nav-cart {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav[data-nav-state="scrolled"] { background: rgba(254, 240, 240, 0.96); }
}

/* Mobile nav links: still 4 items + cart, smaller font, tighter gaps */
@media (max-width: 540px) {
  .nav { padding: 12px 14px; }
  .nav .brand { height: 30px; }
  .nav-links { gap: 14px; font-size: 12.5px; }
  .nav-cart { width: 36px; height: 36px; }
  .nav-cart svg { width: 18px; height: 18px; }
}
@media (max-width: 380px) {
  .nav-links { gap: 10px; font-size: 11.5px; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: var(--emerald-deep);
  color: #fff;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 22px 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, transparent 0%, rgba(0,0,0,.18) 100%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(68,1,30,.55) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { text-align: center; max-width: 640px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 8vw, 76px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  color: #fff;
  animation: hero-rise 1s var(--ease-out) both;
}
.hero-sub {
  font-family: var(--font-text);
  font-size: clamp(15px, 4vw, 21px);
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 36ch;
  margin: 24px auto 0;
  animation: hero-rise 1s var(--ease-out) both;
  animation-delay: .15s;
}
.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin: 36px auto 0;
  max-width: 380px;
  animation: hero-rise 1s var(--ease-out) both;
  animation-delay: .3s;
}
.hero-actions .btn-pri,
.hero-actions .btn-ghost-light { width: 100%; justify-content: center; }

.hero-image {
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  animation: hero-rise 1.1s var(--ease-out) both;
  animation-delay: .45s;
}
.hero-image .image-placeholder {
  width: 100%;
  max-width: 460px;
}
.hero-image .image-placeholder--hero {
  border-radius: 28px;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
}
.hero-image .image-placeholder--hero .placeholder-label {
  color: rgba(255,255,255,.5);
}
.hero-caption {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin: 0;
  text-align: center;
  letter-spacing: .01em;
  max-width: 30ch;
  line-height: 1.5;
}

/* Desktop: side-by-side hero */
@media (min-width: 880px) {
  .hero { padding: calc(var(--nav-h) + 40px) 40px 120px; }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    text-align: start;
  }
  .hero-text { text-align: start; margin: 0; }
  .hero-actions { flex-direction: row; margin-inline-start: 0; max-width: none; }
  .hero-actions .btn-pri,
  .hero-actions .btn-ghost-light { width: auto; }
  .hero-image .image-placeholder { max-width: none; }
  .hero-caption { text-align: start; max-width: 36ch; }
}

/* Scroll cue centered, nudges down */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 10px;
  z-index: 2;
  animation: hero-rise 1s var(--ease-out) both;
  animation-delay: .9s;
}
.scroll-cue .cue-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.5), transparent);
  position: relative; overflow: hidden;
  display: inline-block;
}
.scroll-cue .cue-dot {
  position: absolute;
  left: -1.5px; top: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,165,116,.6);
  animation: scroll-cue-fall 2.2s var(--ease-out) infinite;
}
@keyframes scroll-cue-fall {
  0%   { top: -2px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 36px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .cue-dot { animation: none; opacity: 1; }
  .hero h1, .hero-sub, .hero-actions, .hero-image { animation: none; opacity: 1; }
}

/* ===================== Buttons ===================== */
.btn-pri {
  background-color: var(--gold);
  background-image: linear-gradient(to right, var(--gold) 50%, var(--emerald-ink) 50%);
  background-size: 200% 100%;
  background-position: 0% center;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  padding: 16px 28px; border-radius: 500px;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  text-align: center;
  transition: background-position .55s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn-pri:hover {
  background-position: 100% center;
  color: var(--gold-soft);
  box-shadow: 0 10px 28px rgba(68, 1, 30, .32);
}
.btn-pri:active { transform: scale(.97); transition: transform .12s var(--ease-out); }

/* Ghost on light bg (white/blush) — burgundy outline */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 10, 16, .25);
  font-family: var(--font-ui); font-weight: 500; font-size: 16px;
  padding: 15px 26px; border-radius: 500px;
  cursor: pointer;
  transition: background var(--t-quick), border-color var(--t-quick), color var(--t-quick);
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Ghost on dark/burgundy bg — white outline */
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.32);
  font-family: var(--font-ui); font-weight: 500; font-size: 16px;
  padding: 15px 26px; border-radius: 500px;
  cursor: pointer;
  display: inline-flex; align-items: center;
  transition: background var(--t-quick), border-color var(--t-quick), color var(--t-quick);
}
.btn-ghost-light:hover { background: #fff; color: var(--emerald-deep); border-color: #fff; }
.btn-ghost-light:active { transform: scale(.97); transition: transform .12s var(--ease-out); }

/* Ghost on ink/black bg (used in cta-final) */
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  font-family: var(--font-ui); font-weight: 500; font-size: 16px;
  padding: 15px 26px; border-radius: 500px;
  cursor: pointer;
  display: inline-flex; align-items: center;
  transition: background var(--t-quick), border-color var(--t-quick), color var(--t-quick);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

/* ===================== SECTION SHELL ===================== */
section { padding: 80px 22px; position: relative; }
@media (min-width: 720px) { section { padding: 112px 40px; } }
.container { max-width: 1200px; margin: 0 auto; }

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.22; letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
@media (min-width: 720px) {
  .section-head { margin-bottom: 56px; }
}

/* ===================== IMAGE PLACEHOLDER (system) ===================== */
/* Pattern: <div class="image-placeholder" data-prompt-id="hero-graduate-01" data-aspect="4:5">
                <span class="placeholder-label">صورة قريبا</span>
             </div>
   When motion.js detects /assets/images/{id}.jpg exists, it replaces inner with an <img>.
*/
.image-placeholder {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(93, 2, 42, 0.04) 0px,
      rgba(93, 2, 42, 0.04) 8px,
      transparent 8px,
      transparent 16px
    ),
    var(--cream-warm);
  border: 1px dashed rgba(93, 2, 42, .18);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--gray);
  isolation: isolate;
}
.image-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1; }
.image-placeholder[data-aspect="4:5"]  { aspect-ratio: 4 / 5; }
.image-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4; }
.image-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3; }
.image-placeholder[data-aspect="16:9"] { aspect-ratio: 16 / 9; }
.image-placeholder .placeholder-label {
  font-family: var(--font-ui); font-size: 12px;
  letter-spacing: .04em;
  color: var(--gray);
  opacity: .7;
}
/* Once swapped to a real image */
.image-placeholder.has-image { background: none; border: 0; }
.image-placeholder.has-image .placeholder-label { display: none; }
.image-placeholder.has-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: inherit;
}

/* ===================== COLOR VISUALIZER (preserved structure) ===================== */
.visualizer { background: linear-gradient(180deg, var(--paper) 0%, var(--cream-warm) 100%); }
.vis-above {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 4.4vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  max-width: 28ch;
  margin: 0 auto 32px;
  letter-spacing: -.005em;
}
.vis-below {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--gray);
  text-align: center;
  margin: 28px auto 0;
  max-width: 36ch;
  line-height: 1.65;
}
.vis-cta { text-align: center; margin-top: 28px; }

.tester {
  background: var(--ink);
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .tester { grid-template-columns: 1fr minmax(280px, 360px); border-radius: 36px; }
}
.tester-photos {
  padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--ink);
}
@media (max-width: 540px) { .tester-photos { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .tester-photos { padding: 28px; gap: 18px; } }

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow:
    0 18px 36px rgba(0,0,0,.4),
    inset 0 0 0 1px rgba(255,255,255,.04);
  isolation: isolate;
}
.photo-frame canvas {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
.photo-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(212,165,116,.22) 50%, transparent 60%);
  background-size: 100% 220%;
  background-position: 0% 110%;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}
.photo-frame.is-changing::after { animation: scan-flash .75s var(--ease-out); }
@keyframes scan-flash {
  0%   { opacity: 0; background-position: 0% 110%; }
  15%  { opacity: 1; }
  100% { opacity: 0; background-position: 0% -10%; }
}

.tester-controls {
  padding: 28px 22px 32px;
  background: linear-gradient(180deg, #1a1a1a, #0e0e0e);
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 1100px) {
  .tester-controls {
    padding: 40px 32px;
    border-top: 0;
    border-inline-start: 1px solid rgba(255,255,255,.06);
  }
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 720px) { .swatches { gap: 10px; } }
.swatch {
  cursor: pointer;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px 8px 10px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  transition:
    background var(--t-quick),
    border-color var(--t-quick),
    box-shadow var(--t-quick),
    transform .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.swatch:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(240,216,182,.3);
  transform: translateY(-2px);
}
.swatch:active { transform: translateY(0) scale(.97); }
.swatch.active {
  background: rgba(240,216,182,.08);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold),
    0 10px 28px -8px rgba(212, 165, 116, .35);
}
.swatch .dot {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,.25),
    inset 0 4px 8px rgba(255,255,255,.12);
}
.swatch .nm {
  font-family: var(--font-ui); font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,.85);
  text-align: center;
  line-height: 1.25;
}
.swatch .hx {
  font-family: var(--font-ui); font-size: 10px;
  color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  margin-top: -2px;
}
@media (max-width: 540px) {
  .swatch { padding: 10px 6px 8px; gap: 6px; border-radius: 14px; }
  .swatch .nm { font-size: 10.5px; }
  .swatch .hx { display: none; }
}

.custom-row {
  margin-top: 22px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 500px;
  padding-inline: 18px 8px;
  padding-block: 6px;
}
.custom-row label {
  font-family: var(--font-ui); font-size: 13px;
  color: rgba(255,255,255,.7);
  flex: 1;
}
.custom-row input[type="color"] {
  width: 38px; height: 38px;
  border: 0; padding: 0; background: transparent;
  border-radius: 50%; cursor: pointer;
  overflow: hidden;
}
.custom-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.custom-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }

.current-info {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.current-info .l {
  font-family: var(--font-ui); font-size: 11px; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .12em;
}
.current-info .v {
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  color: #fff; margin-top: 4px;
}
.current-info .hex {
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--gold); font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 80px 22px 40px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) { .footer { padding: 96px 40px 40px; } }
.footer .container { max-width: 1200px; }
.footer-mark { margin-bottom: 56px; }
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .92; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
.footer-col h5 {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  color: var(--gold); text-transform: uppercase; letter-spacing: .14em;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-family: var(--font-ui); font-size: 14px;
  color: rgba(255,255,255,.65);
  padding: 5px 0;
  transition: color var(--t-quick);
}
.footer-col a:hover { color: var(--gold-soft); }

.footer-meta {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  font-family: var(--font-ui); font-size: 12px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: 12px;
}

/* ===================== SIGN-UP MODAL ===================== */
.signup-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.signup-modal[hidden] { display: none; }
.signup-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 10, 16, .56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.signup-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(26,10,16,.4);
  animation: signup-in .35s var(--ease-out);
}
@keyframes signup-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.signup-close {
  position: absolute;
  top: 14px; inset-inline-end: 14px;
  width: 36px; height: 36px;
  border: 0; background: transparent;
  font-family: var(--font-display); font-size: 24px; line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: background var(--t-quick), color var(--t-quick);
}
.signup-close:hover { background: var(--cream-warm); color: var(--emerald-deep); }
.signup-card h3 {
  font-family: var(--font-display); font-weight: 900; font-size: 26px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}
.signup-sub {
  font-family: var(--font-text); font-size: 15px;
  color: var(--gray);
  margin: 0 0 24px;
  line-height: 1.6;
}
.signup-form {
  display: flex; flex-direction: column;
  gap: 14px;
}
.signup-form label {
  display: flex; flex-direction: column;
  gap: 6px;
  font-family: var(--font-ui); font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: .02em;
}
.signup-form input,
.signup-form select {
  font-family: var(--font-text); font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--gray-line);
  background: #fff;
  border-radius: 12px;
  color: var(--ink);
  transition: border-color var(--t-quick), box-shadow var(--t-quick);
  width: 100%;
}
.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: var(--emerald-deep);
  box-shadow: 0 0 0 3px rgba(93, 2, 42, .12);
}
.signup-submit {
  margin-top: 8px;
  background: var(--emerald-deep);
  color: #fff;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  padding: 15px 20px;
  border: 0; border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-quick), transform .15s var(--ease-out);
}
.signup-submit:hover { background: var(--emerald-ink); }
.signup-submit:active { transform: scale(.97); }
.signup-fineprint {
  font-family: var(--font-ui); font-size: 12px;
  color: var(--gray);
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.5;
}
.signup-form input.is-error,
.signup-form select.is-error {
  border-color: #b03030;
  box-shadow: 0 0 0 3px rgba(176, 48, 48, .14);
}
.signup-step[hidden] { display: none; }
.signup-recaptcha { min-height: 0; margin-top: 8px; }
.signup-recaptcha:empty { display: none; }
.signup-submit:disabled {
  opacity: .6;
  cursor: progress;
}

/* OTP step */
.signup-otp-label { align-items: center; }
.signup-otp-input {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .35em;
  text-align: center;
  font-feature-settings: "tnum" 1;
}
.signup-otp-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; gap: 12px; flex-wrap: wrap;
}
.signup-otp-back,
.signup-otp-resend {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  background: transparent; border: 0; padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.signup-otp-back:hover,
.signup-otp-resend:hover { color: var(--emerald-deep); }
.signup-otp-fineprint { min-height: 18px; margin-top: 8px; }
.signup-otp-fineprint.is-error { color: #b03030; }

/* ===================== WHATSAPP PILL ===================== */
.wa-pill {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  display: none;
  align-items: center; gap: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  padding: 12px 18px;
  border-radius: 500px;
  text-decoration: none;
  box-shadow:
    0 14px 28px rgba(26,10,16,.32),
    0 1px 0 rgba(255,255,255,.06) inset;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .55s var(--ease-out), opacity .35s var(--ease-out), background .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.wa-pill.is-visible { transform: translateY(0); opacity: 1; }
.wa-pill:active { background: var(--emerald-deep); transform: translateY(0) scale(.97); }
.wa-pill .wa-pill-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--gold-soft);
  flex-shrink: 0;
}
@media (max-width: 880px) { .wa-pill { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .wa-pill { transition: opacity .35s var(--ease-out); transform: none; } }
