/* No third-party fonts — keeps CSP tight on Cloudflare Pages */
:root {
  --bg: #050805;
  --ink: #f2f6f3;
  --muted: rgba(242, 246, 243, 0.58);
  --line: rgba(242, 246, 243, 0.12);
  --gold: #d4b35c;
  --mint: #9fd9b0;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Shell ── */
.mock-shell {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 50% -10%, #183224 0%, transparent 55%),
    #050805;
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Floating glass bar — no pill buttons */
.mock-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 64px;
  padding:
    max(0.7rem, var(--safe-top))
    max(1rem, var(--safe-right))
    0.7rem
    max(1rem, var(--safe-left));
  background: rgba(5, 8, 5, 0.42);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mock-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  text-decoration: none;
  color: #fff;
}
.mock-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.mock-brand-name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.15rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
  overflow: visible;
}
.page-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.page-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  opacity: 0.95;
}
.page-nav a:hover,
.page-nav a:focus-visible {
  color: #fff;
  background: none !important;
}
.page-nav a:hover::after,
.page-nav a:focus-visible::after {
  transform: scaleX(0.55);
}
.page-nav a[aria-current="page"] {
  color: #fff;
  background: none !important;
}
.page-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-short { display: none; }

.mock-stage {
  position: relative;
  margin: 0;
  width: 100%;
  background: transparent;
}
.mock-stage picture {
  display: block;
  width: 100%;
}
.mock-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  margin: 0 auto;
  object-fit: contain !important;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
  animation: mock-rise 0.7s ease both;
}
@keyframes mock-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .mock-chrome {
    min-height: 56px;
    gap: 0.75rem;
    padding-left: max(0.85rem, var(--safe-left));
    padding-right: max(0.85rem, var(--safe-right));
  }
  .mock-brand-name { font-size: 1.15rem; }
  .page-nav { gap: 0.1rem 0.85rem; }
  .page-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    min-height: 40px;
  }
  .nav-full { display: none; }
  .nav-short { display: inline; }
}

@media (max-width: 380px) {
  .mock-brand-name { display: none; }
  .page-nav { gap: 0.65rem; }
}

/* Desktop: full board, sharp, over a blurred extension of itself — no crop, no black bars */
@media (min-width: 900px) {
  .mock-shell {
    height: 100dvh;
    overflow: hidden;
    background: #050805;
  }
  .mock-chrome {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(4, 7, 4, 0.92) 0%, rgba(4, 7, 4, 0.55) 45%, rgba(4, 7, 4, 0) 100%);
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: max(1.1rem, var(--safe-top));
    padding-bottom: 2rem;
  }
  .mock-stage {
    position: fixed;
    inset: 0;
    height: 100dvh;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
  .mock-stage::before {
    content: "";
    position: absolute;
    inset: -4%;
    background: var(--board, #050805) center center / cover no-repeat;
    filter: blur(44px) brightness(0.5) saturate(1.1);
    transform: scale(1.14);
    z-index: 0;
  }
  .mock-stage picture {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .mock-cover {
    width: auto;
    max-width: min(100%, 1700px);
    height: 100% !important;
    max-height: 100dvh;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center center;
    filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.5));
    animation: mock-fade 0.8s ease both;
  }
}
@keyframes mock-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Developer email QR — compact; opens mailto (address not shown) */
.wa-card {
  position: absolute;
  z-index: 25;
  right: max(0.7rem, var(--safe-right));
  bottom: max(0.7rem, var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: auto;
  max-width: none;
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border-radius: 12px;
  text-decoration: none;
  color: #0a120c;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-card:hover,
.wa-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.wa-qr {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex-shrink: 0;
  background: #fff;
}
.wa-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.wa-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #146c2e;
}
.wa-phone {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0a120c;
  line-height: 1.15;
}
.wa-hint {
  display: none;
}

@media (max-width: 720px) {
  .wa-card {
    left: auto;
    right: max(0.65rem, var(--safe-right));
    bottom: max(0.65rem, var(--safe-bottom));
    transform: none;
    width: auto;
  }
  .wa-card:hover,
  .wa-card:focus-visible {
    transform: translateY(-1px);
  }
  .wa-qr { width: 40px; height: 40px; }
  .wa-phone { font-size: 0.72rem; }
}

@media (min-width: 900px) {
  .wa-card {
    right: max(1rem, var(--safe-right));
    bottom: max(1rem, var(--safe-bottom));
  }
  .wa-qr { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .mock-cover { animation: none !important; }
  .page-nav a::after { transition: none; }
  .wa-card { transition: none; }
}
