/* Prime Solutions site. Colours and type come from tokens.css (brand/tokens.css in the business repo). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ps-paper); color: var(--ps-ink);
  font: 400 1.0625rem/1.65 var(--ps-font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ps-clay); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ps-clay); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--ps-font-heading); font-weight: 800; letter-spacing: -0.025em; color: var(--ps-teal); margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 2 * clamp(16px, 5vw, 64px)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 700 .78rem/1 var(--ps-font-heading); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ps-teal); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--ps-clay); }
.lede { font-size: 1.1875rem; color: var(--ps-muted); max-width: 58ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; text-decoration: none; font: 700 .95rem/1 var(--ps-font-heading);
  padding: 14px 22px; border-radius: 10px; transition: background .2s, transform .2s; }
.btn--primary { background: var(--ps-teal); color: #fff; }
.btn--primary:hover { background: #0b3b39; transform: translateY(-1px); }
.btn--ghost { color: var(--ps-teal); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ps-teal) 30%, transparent); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ps-teal); }
.link { font: 700 .95rem/1 var(--ps-font-heading); color: var(--ps-clay); text-underline-offset: 4px; }

/* Placeholders: visible on purpose until real content arrives */
.ph { color: var(--ps-clay); font-weight: 600; }
.ph-box { display: grid; place-items: center; text-align: center; padding: 24px; border: 1.5px dashed color-mix(in srgb, var(--ps-clay) 60%, transparent);
  border-radius: 16px; color: var(--ps-clay); font: 600 .95rem/1.4 var(--ps-font-heading); background: color-mix(in srgb, var(--ps-clay) 5%, var(--ps-paper)); }

/* ---------- Navigation: transparent over the hero, solid paper once the page content is reached ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 200; padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s ease, box-shadow .35s ease; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav__logo img { height: 30px; width: auto; }
.nav .logo--dark { display: none; }
.nav__links { display: flex; align-items: center; gap: 30px; font: 600 .92rem/1 var(--ps-font-heading); }
.nav__links a:not(.btn) { color: #F7F6F2; text-decoration: none; opacity: .88; transition: color .35s ease; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links .btn { padding: 11px 18px; background: #F7F6F2; color: var(--ps-teal); }
.nav::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; transition: opacity .35s ease;
  background: linear-gradient(180deg, rgba(9, 22, 21, .38), transparent); }
.nav.is-solid::before { opacity: 0; }
.nav.is-solid { background: color-mix(in srgb, var(--ps-paper) 94%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ps-line); }
.nav.is-solid .logo--light { display: none; }
.nav.is-solid .logo--dark { display: block; }
.nav.is-solid .nav__links a:not(.btn) { color: var(--ps-ink); }
.nav.is-solid .nav__links .btn { background: var(--ps-teal); color: #fff; }
@media (max-width: 860px) { .nav__links a:not(.btn) { display: none; } .nav__logo img { height: 24px; } .nav__inner { height: 64px; }
  .nav__links .btn { padding: 10px 14px; font-size: .88rem; } }

/* ---------- Hero: split screen. Teal panel left, maze photo right (edge to edge) ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--ps-teal); color: #F7F6F2; }
.hero__img { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.hero__inner { width: 50%; margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  padding: 120px clamp(24px, 4vw, 64px) clamp(32px, 5vw, 64px) max(clamp(16px, 5vw, 64px), (100vw - 1160px) / 2); }
.hero__card { flex: 1; max-width: 620px; padding-right: clamp(0px, 2vw, 32px); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(36px, 5vh, 52px); }
.hero__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font: 600 .82rem/1 var(--ps-font-heading); letter-spacing: .04em; }
.hero__steps a { display: inline-flex; align-items: baseline; gap: 8px; color: rgba(247, 246, 242, .72); text-decoration: none; padding-bottom: 6px;
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.hero__steps a:hover { border-bottom-color: currentColor; }
.hero__steps span { color: var(--ps-dark-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero h1 { color: #F7F6F2; font-size: clamp(2.6rem, 5.1vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: clamp(28px, 5vh, 56px); }
.hero h1 span { display: block; }
@media (min-width: 861px) { .hero h1 span { white-space: nowrap; } }
.hero__light { font-weight: 300; letter-spacing: -0.03em; }
.hero__foot { border-top: 1px solid rgba(247, 246, 242, .18); padding-top: 28px; }
.hero__foot p { color: rgba(247, 246, 242, .82); font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.7; }
.hero__foot p span { display: block; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.hero .btn--primary { background: #F7F6F2; color: var(--ps-teal); }
.hero .btn--primary:hover { background: #fff; }
.hero__caption { position: absolute; bottom: clamp(20px, 4vw, 40px);
  left: calc(50% + clamp(20px, 3vw, 48px)); justify-content: flex-start;
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: clamp(12px, 1.3vw, 20px);
  font: 600 clamp(.72rem, .95vw, .9rem)/1.3 var(--ps-font-heading); letter-spacing: 0; color: rgba(247, 246, 242, .94);
  text-shadow: 0 1px 2px rgba(9, 22, 21, .35), 0 2px 18px rgba(9, 22, 21, .45); }
.hero__caption li { display: flex; align-items: center; gap: clamp(6px, .6vw, 10px); }
.hero__caption li::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; background: var(--ps-dark-accent); box-shadow: 0 1px 6px rgba(9, 22, 21, .35); }
@media (max-width: 1023px) { .hero__caption { display: none; } }
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__img { position: relative; left: 0; width: 100%; height: 56svh; object-position: 62% 30%; }
  .hero__inner { width: auto; min-height: 0; padding: 32px 16px 40px; }
  .hero__card { gap: 36px; }
  .hero h1 { margin-top: 24px; }
  .hero__caption { display: none; }
}

/* ---------- Page ---------- */
.page { position: relative; background: var(--ps-paper); }
section.block { padding-block: clamp(80px, 11vw, 140px); }
section.block + section.block { border-top: 1px solid var(--ps-line); }
.block__head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.block__head h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.06; }

/* Intro: tools strip, statement + paragraph, photo pair */
.intro { padding-block: clamp(56px, 7vw, 88px) clamp(72px, 10vw, 128px); }
.tools { display: grid; justify-items: center; gap: 22px; text-align: center; }
.tools .eyebrow { justify-self: center; }
/* Ticker: two identical rows slide left by one row's width, then loop seamlessly. */
.tools__marquee { width: 100%; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.tools__row { list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: clamp(40px, 5vw, 72px); padding-right: clamp(40px, 5vw, 72px);
  animation: tools-scroll 38s linear infinite; }
.tools__marquee:hover .tools__row { animation-play-state: paused; }
.tools__row li { white-space: nowrap; }
@keyframes tools-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .tools__row { animation: none; flex-wrap: wrap; justify-content: center; flex: 1; padding-right: 0; gap: 14px 40px; }
  .tools__row[aria-hidden] { display: none; }
  .tools__marquee { -webkit-mask-image: none; mask-image: none; }
}
.tools__row li { font: 700 clamp(1.1rem, 1.8vw, 1.5rem)/1 var(--ps-font-heading); letter-spacing: -.02em; color: color-mix(in srgb, var(--ps-teal) 45%, var(--ps-paper)); }
.intro__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 8vw, 120px); align-items: start;
  margin-block: clamp(64px, 9vw, 112px) clamp(40px, 5vw, 64px); }
.intro__text h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; max-width: 15ch; }
.intro__text p { font-size: 1.125rem; color: var(--ps-ink); max-width: 52ch; padding-top: .3em; }
.intro__media { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 24px); }
.intro__media img { width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; border-radius: 20px; }
@media (max-width: 760px) {
  .intro__text { grid-template-columns: minmax(0, 1fr); }
  .intro__media { grid-template-columns: minmax(0, 1fr); }
  .intro__media img { height: 260px; }
  .intro__media img + img { display: none; }
}

/* Problem */
.problem h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.02; max-width: 17ch; }
.problem__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
.problem__grid h3 { font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 10px; }
.problem__grid p { color: var(--ps-muted); }
@media (max-width: 760px) { .problem__grid { grid-template-columns: minmax(0, 1fr); } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { background: var(--ps-white); border: 1px solid var(--ps-line); border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.step__num { font: 800 .85rem/1 var(--ps-font-heading); color: var(--ps-clay); letter-spacing: .08em; }
.step h3 { font-size: 1.6rem; }
.step__meta { font: 700 .82rem/1.3 var(--ps-font-heading); color: var(--ps-teal); background: color-mix(in srgb, var(--ps-teal) 8%, var(--ps-white)); border-radius: 999px; padding: 6px 12px; justify-self: start; }
.step p { color: var(--ps-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Paid ads: small secondary block inside "How it works" */
.ads { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px clamp(32px, 5vw, 72px);
  align-items: start; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--ps-line); border-radius: 18px;
  background: color-mix(in srgb, var(--ps-teal) 4%, var(--ps-paper)); }
.ads__head { display: grid; gap: 14px; }
.ads h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -.02em; }
.ads__body { display: grid; gap: 16px; justify-items: start; }
.ads__body p { color: var(--ps-muted); max-width: 56ch; }
.ads__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ads__tags li { font: 600 .82rem/1 var(--ps-font-heading); color: var(--ps-teal); background: var(--ps-white); border: 1px solid var(--ps-line); border-radius: 999px; padding: 8px 12px; }
@media (max-width: 760px) { .ads { grid-template-columns: minmax(0, 1fr); } }

/* Case study */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.case__facts { display: grid; gap: 22px; margin-top: 28px; }
.case__facts dt { font: 700 .78rem/1 var(--ps-font-heading); letter-spacing: .12em; text-transform: uppercase; color: var(--ps-muted); margin-bottom: 6px; }
.case__facts dd { margin: 0; }
.case__results { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ps-line); }
.case__results b { display: block; font: 800 2rem/1 var(--ps-font-heading); color: var(--ps-teal); letter-spacing: -.02em; }
.case__results span { font-size: .9rem; color: var(--ps-muted); }
.case__media { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; border-radius: 20px; }
@media (max-width: 860px) { .case { grid-template-columns: minmax(0, 1fr); } }

/* About: full-width teal block, statement headline, then "why it works" text */
.about { background: var(--ps-teal); color: #F7F6F2; padding-block: clamp(72px, 9vw, 120px); }
.about .eyebrow { color: rgba(247, 246, 242, .85); }
.about .eyebrow::before { background: var(--ps-dark-accent); }
.about h2 { color: #F7F6F2; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; max-width: 22ch; margin-top: 22px; }
.about__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 5vw, 80px);
  margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(247, 246, 242, .18); }
.about__body > .eyebrow { align-self: start; margin-top: .45em; }
.about__text { display: grid; gap: 22px; max-width: 62ch; }
.about__text p { font-size: 1.125rem; line-height: 1.7; color: rgba(247, 246, 242, .9); }
.about__note { font-size: 1rem !important; color: rgba(247, 246, 242, .65) !important; }
@media (max-width: 760px) { .about__body { grid-template-columns: minmax(0, 1fr); } }
.block + .about, .about + .block { border-top: 0; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.faq details { border-bottom: 1px solid var(--ps-line); padding-block: 22px; }
.faq details:first-child { border-top: 1px solid var(--ps-line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 700 1.15rem/1.35 var(--ps-font-heading); color: var(--ps-teal); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; color: var(--ps-clay); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ps-muted); max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Book */
.book { background: var(--ps-teal); color: #F7F6F2; border-radius: 28px; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.book h2 { color: #F7F6F2; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; }
.book p { color: #CFE3E0; margin-top: 18px; max-width: 42ch; }
.book .eyebrow { color: var(--ps-dark-accent); } .book .eyebrow::before { background: var(--ps-dark-accent); }
.book__cal { display: grid; gap: 10px; min-width: 0; width: 100%; max-width: 440px; justify-self: end; }
.book__cal-frame { background: #fff; border-radius: 16px; min-height: 380px; max-height: 600px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .45); }
.book__cal-box { position: relative; border-radius: 16px; overflow: hidden; }
.book__cal-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%); opacity: 0; transition: opacity .25s; }
.book__cal-box:has(.book__cal-more:not([hidden]))::after { opacity: 1; }
.book__cal-more { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1; border: 0; cursor: pointer;
  background: var(--ps-teal); color: #fff; font: 700 .82rem/1 var(--ps-font-heading); padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(9, 22, 21, .5); }
.book__cal-more:hover { background: #0b3b39; }
.book__cal-fallback { justify-self: end; font-size: .85rem; color: rgba(247, 246, 242, .7); text-underline-offset: 3px; }
.book__cal-fallback:hover { color: #F7F6F2; }
.book__alt { margin-top: 26px; font-size: .95rem; color: #CFE3E0; }
.book__alt .ph { color: var(--ps-dark-accent); }
.book__alt a { color: #F7F6F2; font-weight: 600; text-underline-offset: 3px; }
.book__alt a:hover { color: var(--ps-dark-accent); }
@media (max-width: 860px) { .book { grid-template-columns: minmax(0, 1fr); } .book__cal { justify-self: stretch; max-width: none; } }
.book-wrap { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 120px); }

/* Legal pages */
.legal__wrap { max-width: 760px; padding-block: calc(76px + clamp(48px, 7vw, 96px)) clamp(72px, 9vw, 120px); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-top: 18px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.01em; margin-top: 44px; }
.legal p, .legal li { color: var(--ps-ink); margin-top: 14px; max-width: 68ch; }
.legal ul { padding-left: 20px; margin: 0; }
.legal__meta { color: var(--ps-muted) !important; font-size: .95rem; }
.legal__draft { border-left: 3px solid var(--ps-clay); padding: 10px 16px; background: color-mix(in srgb, var(--ps-clay) 7%, var(--ps-paper)); color: var(--ps-ink); font-size: .95rem; }
.legal__facts { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--ps-line); }
.legal__facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ps-line); }
.legal__facts dt { color: var(--ps-muted); }
.legal__facts dd { margin: 0; }
@media (max-width: 560px) { .legal__facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Footer */
.nowrap { white-space: nowrap; }
.footer { border-top: 1px solid var(--ps-line); padding-block: clamp(48px, 6vw, 72px) calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; color: var(--ps-muted); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand p { max-width: 30ch; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h3 { font: 700 .78rem/1 var(--ps-font-heading); letter-spacing: .12em; text-transform: uppercase; color: var(--ps-teal); margin-bottom: 6px; }
.footer a { color: var(--ps-muted); text-decoration: none; }
.footer a:hover { color: var(--ps-teal); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--ps-line); font-size: .88rem; }
@media (max-width: 860px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
