/* UpfrontWS — minimal flat blue, skeleton `.` nav, slide drawer */
:root {
  --blue: #004aad;
  --blue-deep: #003585;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.76);
  --text-faint: rgba(255, 255, 255, 0.48);
  --focus: #ffffff;
  --column-max: 22rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--blue);
}

.app-root {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Top bar: back link only when reading content */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.back-to-menu {
  display: none;
  margin: 0;
  padding: 0.15rem 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-menu:hover {
  color: var(--text);
}

.back-to-menu:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

body.is-reading .back-to-menu {
  display: inline-block;
}

/* Sliding drawer (menu) */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.25rem 5rem;
  background: var(--blue);
  transform: translateX(0);
  transition: transform 0.38s var(--ease-out);
}

body.is-reading .nav-drawer {
  transform: translateX(-100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer {
    transition-duration: 0.01ms;
  }
}

.nav-drawer-inner {
  width: 100%;
  max-width: var(--column-max);
}

.nav-drawer-label {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: lowercase;
}

.nav-tap-hint {
  display: none;
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  text-transform: lowercase;
  opacity: 0.92;
}

@media (hover: none), (max-width: 36rem) {
  .nav-tap-hint {
    display: block;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 36.01rem) {
  .nav-tap-hint {
    display: none;
  }
}

/* Nav groups — airy clusters (labels + spacing, no rails) */
.nav-groups {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-group {
  margin-bottom: 1.1rem;
}

.nav-group:last-child {
  margin-bottom: 0;
}

.nav-group--solo {
  margin-bottom: 0.85rem;
}

.nav-group--services {
  margin-bottom: 0;
}

.nav-group--details {
  margin-top: 1.15rem;
  margin-bottom: 0;
}

.nav-cluster-label {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--text-faint);
  opacity: 0.92;
}

.nav-cluster-label--sub {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  opacity: 0.82;
  letter-spacing: 0.16em;
}

.nav-subcluster {
  margin: 0;
}

.nav-group-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-group-items--ads {
  padding-left: 0;
}

.inline-link {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.15em;
}

.inline-link:hover {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.65);
}

.footer-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 0.12em;
}

.footer-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.menu-btn {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
  margin: 0 -0.5rem;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-transform: lowercase;
  text-decoration: none;
  transition: background-color 0.22s ease, opacity 0.18s ease;
  display: block;
}

.menu-btn-main {
  display: block;
  width: 100%;
  overflow: hidden;
}

.menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.menu-btn:not([aria-current="true"]):hover {
  opacity: 0.92;
}

/* Subtle periodic cue: only the upfront line hops while menu is open */
body:not(.is-reading) #tab-intro .menu-btn-main {
  animation: upfrontHop 6s var(--ease-out) infinite;
}

@keyframes upfrontHop {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  84% {
    transform: translateY(-2px);
  }
  88% {
    transform: translateY(0);
  }
  92% {
    transform: translateY(-1px);
  }
  96% {
    transform: translateY(0);
  }
}

.menu-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.menu-btn[aria-current="true"] {
  opacity: 1;
  font-weight: 600;
}

.menu-btn:not([aria-current="true"]) {
  opacity: 0.84;
}

.menu-btn .skel-dot {
  opacity: 0.85;
  margin-right: 0.15rem;
}

.menu-btn .price-hint {
  float: right;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .menu-btn {
    transition: none;
  }
  body:not(.is-reading) #tab-intro .menu-btn-main {
    animation: none;
  }
}

/* Main content layer */
.content-layer {
  min-height: 100dvh;
  padding: 4.25rem 1.25rem 4rem;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

body.is-reading .content-layer {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .content-layer {
    transition: none;
  }
}

.content-inner {
  width: 100%;
  max-width: 28rem;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: panelFade 0.32s var(--ease-out);
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel.is-active {
    animation: none;
  }
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.panel .lede {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.panel h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-faint);
}

.panel ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.panel ul li {
  margin-bottom: 0.5rem;
  padding-left: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.panel ul li::before {
  content: ".";
  opacity: 0.55;
  margin-right: 0.35rem;
}

.panel ol {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  list-style: decimal;
}

.panel ol li {
  margin-bottom: 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  padding-left: 0.25rem;
}

.panel ol li::before {
  content: none;
}

.price-tag {
  display: block;
  margin: 0.5rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cta-row {
  margin-top: 1.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 0;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.note-small {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.45;
}

.panel p:not(.lede):not(.note-small) {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}

/* Brand corner logo (cover-inspired) */
.brand-corner {
  position: fixed;
  bottom: 1.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  opacity: 0.92;
}

.brand-corner a {
  display: block;
  line-height: 0;
}

.brand-corner .site-logo {
  height: 4.2rem;
  width: auto;
  max-width: 15rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.is-reading .brand-corner {
  opacity: 0.65;
}

.site-tag {
  position: fixed;
  top: 1.15rem;
  left: 1.25rem;
  z-index: 45;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-faint);
}

body.is-reading .site-tag {
  display: none;
}

footer.site-footer {
  position: fixed;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  z-index: 30;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-faint);
  pointer-events: none;
}

body.is-reading footer.site-footer {
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}
