/* Fitri Samad brand layer for the WhatsApp demos (loaded after wa.css). A slim bar with a link home and one call to action,
   a dark Fitri backdrop and a framed phone on desktop. Phones keep the full-screen chat, just below the bar. System fonts only. */
:root {
  --fitri-bar: 56px;
  --fitri-paper: #0d0c0b;
  --fitri-ink: #efe6d8;
  --fitri-accent: #f9b13c;
}

.fitri-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: calc(var(--fitri-bar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 10px;
  background: var(--fitri-paper); color: var(--fitri-ink);
  border-bottom: 1px solid rgba(239, 230, 216, 0.1);
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.fitri-bar__mark, .fitri-bar__cta { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.fitri-bar__mark { color: inherit; text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; padding: 0 2px; white-space: nowrap; }
.fitri-bar__tag { font-size: 11px; letter-spacing: 0.04em; color: rgba(239, 230, 216, 0.78); border: 1px solid rgba(239, 230, 216, 0.38); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.fitri-bar__cta {
  margin-left: auto; padding: 0 16px;
  background: var(--fitri-accent); color: var(--fitri-paper); border-radius: 999px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.fitri-bar__cta:hover { background: #fcc263; transform: translateY(-1px); }
.fitri-bar__mark:focus-visible, .fitri-bar__cta:focus-visible { outline: 2px solid var(--fitri-accent); outline-offset: 3px; }
.fitri-bar__cta:focus-visible { outline-color: #fff; }
.fitri-bar__cta .short { display: none; }

/* Desktop and tablets: dark Fitri backdrop, chat card below the bar like a framed phone. */
body { background: radial-gradient(70% 45% at 50% 0%, #26211a 0%, var(--fitri-paper) 70%) var(--fitri-paper); }
.stage { padding-top: calc(var(--fitri-bar) + 24px); padding-bottom: 24px; }
.wa {
  height: min(840px, calc(100vh - var(--fitri-bar) - 48px));
  height: min(840px, calc(100dvh - var(--fitri-bar) - 48px));
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(239, 230, 216, 0.08), 0 28px 80px rgba(0, 0, 0, 0.6);
}

/* Phones (portrait or landscape): the chat is the whole screen below the bar. wa.css positions it from the visual viewport. */
@media (max-width: 520px), (max-height: 520px) {
  body { background: var(--wa-chat-solid); }
  .stage { padding: 0; }
  .wa {
    top: calc(var(--wa-top, 0px) + var(--fitri-bar) + env(safe-area-inset-top));
    height: calc(var(--wa-vh, 100vh) - var(--fitri-bar) - env(safe-area-inset-top));
    height: calc(var(--wa-vh, 100dvh) - var(--fitri-bar) - env(safe-area-inset-top));
    border-radius: 0; box-shadow: none;
  }
  .wa-header { padding-top: 4px; }
  .fitri-bar__tag { display: none; }
}
@media (max-width: 520px) {
  .fitri-bar__cta .long { display: none; }
  .fitri-bar__cta .short { display: inline; }
}
@media (max-width: 340px) { .fitri-bar__mark { letter-spacing: 0.02em; } .fitri-bar__cta { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) {
  .fitri-bar__cta { transition: none; }
  .fitri-bar__cta:hover { transform: none; }
}
