/* Shared site header — Stripe-inspired */

:root {
  --pom-bg-main: #FFFFFF;
  --pom-bg-light: #FFFFFF;
  --pom-text: #0A2540;
  --pom-text-muted: #425466;
  --pom-accent: #635BFF;
  --pom-accent-hover: #5851E6;
  --pom-hover: #425466;
  --pom-font-heading: 'Inter', system-ui, sans-serif;
  --pom-font-body: 'Inter', system-ui, sans-serif;
  --pom-header-height: 72px;
  --pom-container-width: 1080px;
  --pom-border: 1px solid rgba(66, 84, 102, 0.12);
  --pom-shadow: 0 2px 5px rgba(50, 50, 93, 0.04);
}

body.site-app {
  padding-top: var(--pom-header-height);
}

.pom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--pom-header-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 300;
  border-bottom: var(--pom-border);
  box-shadow: var(--pom-shadow);
}

/* Home hero — transparent header over gradient (Stripe-style) */
body.page-home .pom-header {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

body.page-home .pom-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: var(--pom-border);
  box-shadow: var(--pom-shadow);
}

.pom-header-inner {
  max-width: var(--pom-container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.pom-header-inner--search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
}

.pom-header-inner--search-only {
  grid-template-columns: auto minmax(0, 1fr);
}

.pom-header-inner--search-only .pom-search {
  max-width: none;
  justify-self: stretch;
}

.pom-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: #000;
  flex-shrink: 0;
}

.pom-logo:hover {
  color: #000;
  opacity: 0.75;
}

.pom-logo-text {
  font-family: var(--pom-font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: inherit;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: lowercase;
}

.pom-logo-beta {
  font-family: var(--pom-font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pom-text-muted);
  border: 1px solid rgba(66, 84, 102, 0.18);
  border-radius: 4px;
  padding: 0.125rem 0.3rem;
  line-height: 1;
  transform: translateY(-0.55em);
}

.pom-search {
  min-width: 0;
  max-width: 360px;
  width: 100%;
  justify-self: center;
}

.pom-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pom-bg-light);
  border: var(--pom-border);
  border-radius: 8px;
  padding: 0 0.875rem;
  height: 40px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pom-search-box:focus-within {
  border-color: rgba(99, 91, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.pom-search-box svg {
  width: 16px;
  height: 16px;
  fill: var(--pom-text-muted);
  flex-shrink: 0;
}

.pom-search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--pom-font-body);
  font-size: 0.875rem;
  color: var(--pom-text);
  outline: none;
}

.pom-search-box input::placeholder {
  color: #8898AA;
}

.pom-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-shrink: 0;
}

.pom-nav .pom-nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pom-nav-links a {
  color: var(--pom-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pom-nav-links a:hover {
  color: var(--pom-hover);
}

.pom-nav-links a[aria-current="page"] {
  color: var(--pom-accent);
}

.pom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pom-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--pom-font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(50, 50, 93, 0.08);
}

.pom-btn:hover {
  background-color: var(--pom-accent-hover);
  color: #fff;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.28);
}

.pom-btn--active {
  background-color: var(--pom-text);
}

.pom-btn--active:hover {
  background-color: #183558;
  box-shadow: none;
}

.pom-btn--subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pom-btn--subscribe svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

body.site-app .status-bar {
  top: var(--pom-header-height);
}

.pom-container {
  max-width: var(--pom-container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.pom-footer {
  background-color: var(--pom-bg-main);
  padding: 4rem 1.5rem;
  border-top: var(--pom-border);
  text-align: center;
}

.pom-footer-logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.pom-footer-logo .pom-logo-text {
  font-size: 1.375rem;
  color: #000;
}

.pom-copyright {
  font-size: 0.8125rem;
  color: var(--pom-text-muted);
  letter-spacing: 0;
  margin-bottom: 0.75rem;
}

.pom-footer-links {
  font-size: 0.875rem;
  color: var(--pom-text-muted);
  margin-bottom: 0;
}

.pom-footer-links a {
  color: var(--pom-text);
  font-weight: 500;
  text-decoration: none;
}

.pom-footer-links a:hover {
  color: var(--pom-accent);
  opacity: 1;
}

.pom-footer-links span {
  margin: 0 0.5rem;
  color: #C1CAD6;
}

.pom-footer-credit {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pom-text-muted);
}

.pom-footer-credit a {
  color: var(--pom-accent);
  text-decoration: none;
  font-weight: 500;
}

.pom-footer-credit a:hover {
  color: var(--pom-accent-hover);
}

@media (max-width: 992px) {
  .pom-header-inner--search {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .pom-search {
    grid-column: 1 / -1;
    max-width: none;
    justify-self: stretch;
  }

  .pom-nav {
    grid-column: 2;
    justify-self: end;
  }

  .pom-logo {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .pom-nav-links {
    display: none;
  }

  .pom-header-inner {
    padding: 0 1rem;
  }

  .pom-logo-text {
    font-size: 1.375rem;
  }

  .pom-btn {
    padding: 0.45rem 0.875rem;
    font-size: 0.875rem;
  }
}
