/* ==========================================================================
   Phixr — site chrome + new theme for inner pages
   css/site.css  (load AFTER css/styles.css)

   Used by: valuation, business-assessment, privacy-policy, cookie-policy.
   - New header (sticky bar), page hero band and footer, matching the homepage.
   - Re-themes styles.css (font, palette, heading weight) without touching the
     form markup/IDs that js/form.js and js/assessment.js rely on.
   All chrome classes are prefixed px- so they never collide with styles.css.
   ========================================================================== */

:root {
  --font: Manrope, Arial, sans-serif;
  --ink: #17112D;
  --ink-soft: #4c4658;
  --purple: #540DEE;
  --purple-deep: #2E008C;
  --coral: #FF6B6B;
  --px-line: #e7e2ef;
  --px-muted: #716a80;
}

body { font-family: var(--font); color: var(--ink); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.035em; }

.px-wrap { width: min(1240px, 90vw); margin: 0 auto; }


/* ---------- Header (sticky bar; js/home.js adds .is-scrolled) ---------- */
.px-header { height: 82px; position: relative; z-index: 50; }

.px-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.px-bar.is-scrolled {
  background: rgba(84, 13, 238, .96);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(23, 17, 45, .18);
}

.px-bar nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height .25s;
}
.px-bar.is-scrolled nav { height: 66px; }

.px-logo img { height: 36px; width: auto; display: block; }

.px-ghost {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  cursor: default;
}


/* ---------- Page hero band ---------- */
.px-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-bottom: 150px;
  background: radial-gradient(circle at 82% 18%, #6139FF 0, transparent 34%),
              radial-gradient(circle at 8% 100%, #3A01AC 0, transparent 40%),
              var(--purple);
}

.px-dots {
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 35%, transparent 88%);
          mask-image: linear-gradient(to bottom, transparent 8%, #000 35%, transparent 88%);
  pointer-events: none;
}

.px-orbit {
  position: absolute;
  right: -2%;
  bottom: 30px;
  width: min(58vw, 860px);
  height: auto;
  opacity: .85;
  pointer-events: none;
}

.px-hero-copy { position: relative; z-index: 2; padding-top: 70px; }

.px-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #A7ABFF;
}

.px-hero h1 {
  margin: 22px 0 24px;
  max-width: 900px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
  color: #fff;
}

.px-hero-copy p {
  max-width: 660px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #eee8ff;
}


/* ---------- Page bodies ---------- */

/* Form pages: the white form card rises over the hero band */
.form-page {
  background: #faf9fc;
  padding: 0 0 110px;
  min-height: 0;
}
.form-page .form-wrap { position: relative; z-index: 3; margin-top: -90px; }
.vform, .aform { box-shadow: 0 30px 80px rgba(46, 0, 140, .16); border: 1px solid var(--px-line); }
.vform legend { font-weight: 700; letter-spacing: -.02em; color: var(--purple); }
.vfield label { font-weight: 600; }

/* Legal pages */
.legal-page { padding: 80px 0 110px; background: #fff; }
.legal-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 40px 0 12px;
  padding-left: 22px;
  position: relative;
}
.legal-wrap h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.legal-wrap > h2:first-child { margin-top: 0; }


/* ---------- Footer ---------- */
.px-footer {
  background: #17112D;
  color: #fff;
  padding: 55px 0 35px;
}

.px-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.px-foot .px-logo img { height: 34px; margin-bottom: 14px; }
.px-foot p { margin: 0; font-size: 14px; color: #cfc8f2; }

.px-foot h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #A7ABFF;
}

.px-foot a:not(.px-logo) {
  display: block;
  margin: 0 0 9px;
  font-size: 14px;
  color: #e6e0f7;
}
.px-foot a:not(.px-logo):hover { color: #fff; }

.px-legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid #ffffff1d;
  font-size: 11px;
  color: #b5a8d7;
}
.px-legal a { margin-left: 14px; color: #b5a8d7; }
.px-legal a:hover { color: #fff; }


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .px-foot { grid-template-columns: 1fr 1fr; }
  .px-hero { padding-bottom: 140px; }
  .px-hero-copy { padding-top: 40px; }
  .px-orbit { width: 130vw; right: -40vw; bottom: 0; }
}

@media (max-width: 600px) {
  .px-foot { grid-template-columns: 1fr; }
  .px-legal { flex-direction: column; }
  .px-legal a { margin: 0 14px 0 0; }
  .px-hero-copy p { font-size: 16px; }
  .form-page .form-wrap { margin-top: -70px; }
  .legal-page { padding-top: 56px; }
}

/* Form pages: keep the orbit up in the corner, clear of the centred form + progress */
.px-hero--form .px-orbit { bottom: auto; top: 50px; width: min(46vw, 660px); }
@media (max-width: 900px) { .px-hero--form .px-orbit { top: 30px; width: 110vw; right: -45vw; } }

/* titles: same scale as the homepage (78px desktop / 46px mobile) */
.px-hero h1 { font-size: clamp(46px, 5.4vw, 78px); }
@media (max-width: 600px) { .px-hero h1 { font-size: 46px; } }

a.px-ghost { cursor: pointer; text-decoration: none; }
a.px-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Header as a floating full-width pill: 10px from the top, left and right */
.px-bar { top: 10px; left: 10px; right: 10px; border-radius: 999px; }
.px-bar nav { height: 72px; }
.px-bar.is-scrolled nav { height: 60px; }
/* keep the logo and button clear of the pill's rounded ends on small screens */
@media (max-width: 760px) {
  .site-bar nav, .px-bar nav { width: auto; margin: 0 22px; }
}

/* Header hides while scrolling down and glides back in when scrolling up (js/home.js) */
.site-bar, .px-bar { transition: background .25s, box-shadow .25s, backdrop-filter .25s, transform 1.65s cubic-bezier(.22,1,.36,1); }
/* slides slowly up and away (no fade/blur) */
.site-bar.is-hidden, .px-bar.is-hidden { transform: translateY(calc(-100% - 24px)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .site-bar, .px-bar { transition: none; } }

/* Main menu: About · For Business Owners · Start a Conversation · [Get Valuation] */
.nav-links { display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: 30px; }
.nav-links a { position: relative; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; opacity: .88; transition: opacity .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: #FF6B6B; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Mobile menu: burger + full-screen panel (js/home.js) ---------- */
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: 10px; padding: 0 11px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: transparent; cursor: pointer; }
  .nav-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; }
  .nav-burger span:nth-child(2) { width: 70%; margin-left: auto; background: #FF6B6B; }
  .site-bar nav .nav-cta, .px-bar nav .px-ghost { margin-left: auto; }
}
@media (max-width: 420px) { .site-bar nav .nav-cta, .px-bar nav .px-ghost { padding: 10px 14px; font-size: 12px; } }
.mnav { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; padding: 18px 26px 36px; color: #fff;
  background: radial-gradient(circle at 90% 10%, #6139FF 0, transparent 45%), linear-gradient(160deg, #540DEE 0%, #3A01AC 100%);
  transform: translateY(-100%); transition: transform .6s cubic-bezier(.76,0,.24,1); visibility: hidden; }
.mnav.open { transform: none; visibility: visible; }
.mnav:not(.open) { transition: transform .5s cubic-bezier(.76,0,.24,1), visibility 0s .5s; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mnav-logo img { height: 34px; width: auto; display: block; }
.mnav-close { position: relative; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: transparent; cursor: pointer; }
.mnav-close span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.mnav-close span + span { transform: rotate(-45deg); }
.mnav-links { display: flex; flex-direction: column; gap: 6px; margin: 56px 0 40px; }
.mnav-links a { display: block; padding: 10px 0; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.14); }
.mnav-links a[aria-current="page"] { color: #A7ABFF; }
.mnav-cta { align-self: flex-start; }
.mnav-mail { margin-top: auto; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.8); text-decoration: none; }
.mnav-links a, .mnav-cta, .mnav-mail { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.mnav.open .mnav-links a, .mnav.open .mnav-cta, .mnav.open .mnav-mail { opacity: 1; transform: none; transition-delay: calc(.3s + var(--i, 0) * .07s); }
html.mnav-lock, html.mnav-lock body { overflow: hidden; }
@media (min-width: 901px) { .mnav { display: none; } }
@media (max-width: 900px) {
  .site-bar nav, .px-bar nav { gap: 10px; }
  .nav-burger { flex: none; margin-left: 0; }
  .site-bar nav .nav-cta, .px-bar nav .px-ghost { flex: none; white-space: nowrap; }
}

/* Mobile: Get Valuation lives in the menu, not the bar; menu is a floating pill-style panel like the header */
@media (max-width: 900px) {
  .site-bar nav .nav-cta, .px-bar nav .px-ghost { display: none; }
  .nav-burger { margin-left: auto; }
}
.mnav { inset: 10px; border-radius: 30px; box-shadow: 0 24px 60px rgba(23, 17, 45, .35);
  transform: translateY(calc(-100% - 20px)); }
.mnav.open { transform: none; }
.mnav-cta { align-self: flex-start; display: inline-flex; align-items: center; padding: 15px 26px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: transparent; color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.mnav-cta:hover { background: rgba(255,255,255,.12); }
.mnav-links a { font-size: clamp(26px, 7.6vw, 34px); }
/* buttons never wrap (arrow stays on the same line); tighter on small phones so long labels fit */
.btn { white-space: nowrap; }
@media (max-width: 480px) { .btn { padding-left: 20px; padding-right: 20px; gap: 8px; font-size: 14px !important; letter-spacing: -.01em; } }
@media (max-width: 380px) { .btn { padding-left: 16px; padding-right: 16px; font-size: 13px !important; } }
/* footer lilac accents → #7B73FF (same as "Your next chapter.") */
.px-foot p, .px-foot h4 { color: #7B73FF !important; }
