/* ==========================================================================
   presence.css — professional LinkedIn positioning service.
   Direction (locked in MASTER_STRATEGY_BRIEF §7): deep navy, LinkedIn-adjacent
   blue, bright white type, clean sans hierarchy, subtle glass surfaces,
   restrained motion. Credible for private banking, modern for younger
   professionals. No neon, no luxury gold, no startup gradient soup.
   ========================================================================== */

.presence-page {
  --navy-900: #050f1f;
  --navy-800: #071428;
  --navy-700: #0b1d36;
  --navy-600: #112746;
  --line: rgba(148, 176, 214, 0.16);
  --line-strong: rgba(148, 176, 214, 0.3);

  --blue: #3d8bfd;
  --blue-bright: #6aa8ff;
  --blue-deep: #1d5fc4;

  --ink: #f4f8ff;
  --ink-muted: #a8bcd8;
  --ink-dim: #708bad;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --wrap: 1180px;
  --radius: 16px;
  --radius-lg: 22px;

  background: var(--navy-800);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

.presence-page .skip-link { background: var(--blue); color: #ffffff; }

.p-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Type scale ---------------------------------------------------------- */

.presence-page h1 {
  font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.presence-page h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 700;
}

.presence-page h3 {
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.p-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.p-gradient {
  background: linear-gradient(96deg, var(--blue-bright), #b9d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Navigation ---------------------------------------------------------- */

.p-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 20, 40, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.p-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  text-decoration: none;
}

.p-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex: none;
  background: linear-gradient(140deg, var(--blue-bright), var(--blue-deep));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.p-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}

.p-nav-links > a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.p-nav-links > a:hover { color: var(--ink); }

.p-nav-links .site-switch { color: var(--ink-dim); font-size: 0.85rem; }
.p-nav-links .site-switch:hover { color: var(--blue-bright); }

.p-nav-cta {
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff !important;
  font-weight: 600;
  transition: background 0.16s ease;
}

.p-nav-cta:hover { background: var(--blue-bright); }

/* --- Buttons ------------------------------------------------------------- */

.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--blue);
  color: #ffffff;
  transition: background 0.16s ease, transform 0.16s ease;
}

.p-btn:hover { background: var(--blue-bright); transform: translateY(-1px); }

.p-btn-primary { background: var(--blue); }

.p-btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.p-btn-ghost:hover { background: rgba(109, 168, 255, 0.1); }

/* --- Hero ---------------------------------------------------------------- */

.p-hero {
  position: relative;
  padding: clamp(52px, 6vw, 88px) 0 clamp(48px, 5vw, 72px);
  overflow: hidden;
}

.p-hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 139, 253, 0.22), transparent 68%);
  pointer-events: none;
}

.p-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.p-lead {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 46ch;
}

.p-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.p-sample-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-dim);
  text-align: center;
}

/* --- Before/after comparison --------------------------------------------- */

.p-scrub {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(2, 8, 20, 0.55), 0 0 0 1px var(--line);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.p-scrub-label {
  position: absolute;
  top: 14px;
  z-index: 5;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.p-scrub-label.before {
  left: 14px;
  background: rgba(10, 22, 40, 0.72);
  color: #cfe0f5;
}

.p-scrub-label.after {
  right: 14px;
  background: var(--blue);
  color: #ffffff;
}

/* First pane sits in flow and defines the height. */
.p-scrub-pane { position: relative; z-index: 1; }

/* Before pane overlays it and is clipped from the right by JS.
   Explicit z-index matters: without it the after pane's stacking can cover
   the before avatar entirely. */
.p-before-pane {
  position: absolute;
  inset: 0;
  z-index: 3;
  clip-path: inset(0 56% 0 0);
}

.p-scrub-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44%;
  z-index: 6;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.p-scrub-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.p-scrub:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

/* --- LinkedIn profile mock ----------------------------------------------- */

.p-li {
  background: #ffffff;
  color: #1a1a1a;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.p-li-banner { height: 104px; background: #dfe3e8; overflow: hidden; }
.p-li-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

.p-li-body { padding: 0 18px 14px; }

.p-li-avatar {
  width: 68px;
  height: 68px;
  margin-top: -34px;
  margin-bottom: 9px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  background: #eceff2;
}

.p-li-avatar img { width: 100%; height: 100%; object-fit: cover; }

.p-li-name { font-size: 1.03rem; font-weight: 700; letter-spacing: -0.01em; }

.p-li-head {
  font-size: 0.79rem;
  line-height: 1.4;
  color: #1a1a1a;
  margin-top: 2px;
  /* Reserve two lines so the shorter "before" headline keeps the sections
     below it aligned with the "after" pane while scrubbing. */
  min-height: 2.8em;
}

.p-li-meta { font-size: 0.72rem; color: #66717c; margin-top: 5px; }

.p-li-buttons { display: flex; gap: 7px; margin-top: 11px; }

.p-li-pill {
  padding: 4px 15px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0a66c2;
  box-shadow: inset 0 0 0 1px #0a66c2;
}

.p-li-pill.primary { background: #0a66c2; color: #ffffff; box-shadow: none; }

.p-li-section {
  padding: 12px 18px;
  border-top: 8px solid #f1f3f5;
}

.p-li-section h4 {
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.p-li-section > p { font-size: 0.75rem; line-height: 1.5; color: #2c2c2c; min-height: 4.5em; }

.p-li-exp { display: flex; gap: 10px; }

.p-li-logo {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  background: #10365c;
  color: #9dc4ec;
}

.p-li-role { font-size: 0.78rem; font-weight: 650; }
.p-li-co { font-size: 0.74rem; color: #2c2c2c; }
.p-li-dates { font-size: 0.7rem; color: #77818c; margin-top: 1px; }
.p-li-desc { font-size: 0.72rem; line-height: 1.45; color: #2c2c2c; margin-top: 4px; min-height: 2.9em; }
.p-li-muted { color: #9aa3ac; font-style: italic; }
.p-li-more { color: #66717c; font-weight: 600; }

/* --- Proof strip --------------------------------------------------------- */

.p-proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy-900);
  padding: 30px 0;
}

.p-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.p-proof-k {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.p-proof-v { font-size: 0.87rem; color: var(--ink-muted); margin-top: 3px; }

/* --- Sections ------------------------------------------------------------ */

.p-section { padding: clamp(56px, 6.5vw, 96px) 0; }
.p-section.alt { background: var(--navy-900); }

.p-section-head { max-width: 62ch; margin-bottom: clamp(30px, 3.6vw, 50px); }
.p-section-head p { margin-top: 14px; color: var(--ink-muted); font-size: 1rem; }

/* --- Cards --------------------------------------------------------------- */

.p-card {
  background: linear-gradient(168deg, var(--navy-700), var(--navy-600));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.p-card p { color: var(--ink-muted); font-size: 0.92rem; margin-top: 9px; }

.p-card-num,
.p-feature .tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin-bottom: 12px;
}

.p-reasons,
.p-features {
  display: grid;
  gap: 18px;
}

.p-reasons { grid-template-columns: repeat(3, 1fr); }
.p-features { grid-template-columns: repeat(2, 1fr); }

/* --- Pricing ------------------------------------------------------------- */

.p-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.p-tier { position: relative; display: flex; flex-direction: column; }

.p-tier.featured {
  border-color: rgba(61, 139, 253, 0.55);
  background: linear-gradient(168deg, #14315c, var(--navy-600));
  box-shadow: 0 18px 44px rgba(4, 12, 26, 0.5);
}

.p-badge {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p-tier-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 9px;
}

.p-price {
  margin-top: 16px;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.p-unit { font-size: 0.8rem; color: var(--ink-dim); margin-bottom: 20px; }

.p-tier ul {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.p-tier li {
  position: relative;
  padding-left: 22px;
  font-size: 0.89rem;
  color: var(--ink-muted);
}

.p-tier li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.p-tier .p-btn { margin-top: auto; }

/* --- Process ------------------------------------------------------------- */

.p-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.p-step {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(11, 29, 54, 0.55);
}

.p-step p { margin-top: 8px; font-size: 0.89rem; color: var(--ink-muted); }

.p-step-num {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(61, 139, 253, 0.16);
  color: var(--blue-bright);
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- About --------------------------------------------------------------- */

.p-about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.p-about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-700);
}

.p-about-photo img { width: 100%; height: 100%; object-fit: cover; }

.p-about-copy p { margin-top: 16px; color: var(--ink-muted); }

.p-sign {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.p-sign strong { display: block; font-size: 1rem; }
.p-sign span { font-size: 0.85rem; color: var(--ink-dim); }

/* --- Closing CTA --------------------------------------------------------- */

.p-cta { padding: 0 0 clamp(56px, 6vw, 92px); }

.p-cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(38px, 5vw, 62px) 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(61, 139, 253, 0.32);
  background: linear-gradient(150deg, #0e2b52, var(--navy-700));
}

.p-cta-box p {
  margin: 14px auto 26px;
  max-width: 52ch;
  color: var(--ink-muted);
}

/* --- Footer -------------------------------------------------------------- */

.p-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-900);
  padding: 34px 0;
}

.p-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
}

.p-footer-meta { margin-top: 10px; font-size: 0.83rem; color: var(--ink-dim); line-height: 1.7; }

.p-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  font-size: 0.87rem;
}

.p-footer-links a { color: var(--ink-muted); text-decoration: none; }
.p-footer-links a:hover { color: var(--blue-bright); }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-reasons { grid-template-columns: 1fr 1fr; }
  .p-pricing { grid-template-columns: 1fr; max-width: 480px; }
  .p-process { grid-template-columns: 1fr 1fr; }
  .p-about { grid-template-columns: 1fr; }
  .p-about-photo { max-width: 320px; }
}

@media (max-width: 760px) {
  .p-nav-links > a:not(.p-nav-cta):not(.site-switch) { display: none; }
  .p-proof-grid { grid-template-columns: 1fr; gap: 18px; }
  .p-reasons,
  .p-features { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .p-wrap { padding: 0 18px; }
  .p-nav-links { gap: 14px; }
  .p-process { grid-template-columns: 1fr; }
  .p-actions .p-btn { width: 100%; }
}
