/* Portal shell — curated from design-guide/site.css
   (page atmosphere, skip-link, gutters). No zoom, mega-nav, or .btn. */

:root {
  --gutter: clamp(2.5rem, 8vw, 9rem);
  /* Portal skips html{zoom:1.1}; keep photo cap as plain 40vh */
  --img-cap: 40vh;
  --mx: 0;
  --my: 0;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-gutter: stable;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

/* Fixed page background: continuous cool blue/white world */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(160deg, #f3f7fc 0%, #ffffff 58%, #f6f9fd 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 80% 12%, rgba(0, 119, 255, .05), transparent 55%),
    linear-gradient(160deg, #f3f7fc 0%, #ffffff 58%, #f6f9fd 100%);
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(34, 34, 34, .08) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, transparent 22%, #000 96%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, transparent 22%, #000 96%);
  translate: calc(var(--mx) * -.8rem) calc(var(--my) * -.6rem);
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.pb-blue-1 {
  width: 54rem;
  height: 40rem;
  top: -12rem;
  right: -10rem;
  background: radial-gradient(closest-side, rgba(0, 119, 255, .045), transparent 72%);
  translate: calc(var(--mx) * -2.2rem) calc(var(--my) * -1.6rem);
}

.pb-blue-2 {
  width: 40rem;
  height: 32rem;
  bottom: -10rem;
  left: -12rem;
  background: radial-gradient(closest-side, rgba(0, 119, 255, .035), transparent 72%);
  translate: calc(var(--mx) * -1.6rem) calc(var(--my) * -1.2rem);
}

.pb-white-1 {
  width: 48rem;
  height: 38rem;
  top: 22%;
  left: 28%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), transparent 70%);
  translate: calc(var(--mx) * -1.2rem) calc(var(--my) * -.9rem);
}

.pb-white-2 {
  width: 36rem;
  height: 30rem;
  bottom: -8rem;
  right: 18%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .8), transparent 70%);
  translate: calc(var(--mx) * -1rem) calc(var(--my) * -.7rem);
}

/* Skip link — site recipe */
.skip-link {
  position: fixed;
  top: .6rem;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%) translateY(-250%);
  background: var(--red);
  color: #fff;
  padding: .7rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(34, 34, 34, .4);
  transition: transform .18s cubic-bezier(.22, .8, .3, 1);
}

.skip-link:focus-visible {
  transform: translateX(-50%) translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
  color: #fff;
}

main:focus {
  outline: none;
}

/* Wider gutters for marketing hero sections (Bootstrap .container stays for app pages) */
.wf-shell-container {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter), 90rem);
  margin-inline: auto;
}

.wf-shell-container-sm {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter), 78rem);
  margin-inline: auto;
}

@media (max-width: 991px) {
  .wf-photo-frame img,
  .wf-landing-hero-img {
    max-height: var(--img-cap);
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}
