/* ============================================================
   Ln2CRM · DARK  per-CRM landings, product-forward layout
   (crm/<crm>/chrome-extension/). Loaded after landing.css and headings.css.

   The product carries the page: the hero is a full-width screenshot of
   LinkedIn with the real extension panel open, and the Create / Manage /
   badge sections show the real panel instead of drawn mockups. Boxes are
   kept for things you act on (plans, FAQ); lists and steps sit on rules.
   ============================================================ */

:root{
  --lp-rule: rgba(244,241,234,.12);
  --lp-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 2px 0 rgba(244,241,234,.03) inset;
  --lp-gap: clamp(32px, 5vw, 72px);
  /* text on the ink ground: one step brighter than the site's --p-ivory-2,
     which read as grey and thin at 14 to 15px on these long pages */
  --lp-text: #d2d0d7;
  --lp-text-2: #bdbbc5;
}

/* ---------- rhythm ---------- */
.sfx-section{ padding: clamp(64px, 8vw, 112px) 0 !important; }
.sfx-section + .sfx-section:not(.sfx-section-alt){ padding-top: clamp(40px, 5vw, 72px) !important; }

/* ---------- text: brighter and never under 15px ---------- */
.sfx-sub, .sfx-lead, .sfx-split__lead, .sfx-faq .ans,
.sfx-section [style*="rgba(0,0,0,.72)"]{ color: var(--lp-text) !important; }
.sfx-step p, .sfx-flow span, .sfx-plan p, .ft-item p{ color: var(--lp-text-2) !important; }
.sfx-micro, .sfx-plan .pl-price small{ color: var(--lp-text-2) !important; }
.sfx-lead, .sfx-split__lead{ max-width: 62ch !important; font-size: 18px !important; line-height: 1.65 !important; }
.ft-item b{ font-size: 17px !important; }
.ft-item p{ font-size: 16px !important; line-height: 1.6 !important; }
.sfx-faq .ans{ font-size: 16px !important; line-height: 1.65 !important; }
.sfx-table td{ font-size: 15.5px !important; }
.sfx-table td:not(:first-child){ color: var(--lp-text) !important; }

/* ---------- one heading scale for every section ---------- */
.sfx-h2, .sfx-split__text h2{
  font-size: clamp(30px, 3.4vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
  text-wrap: balance;
}

/* ---------- hero: kicker, a wide headline, then copy | actions on the
   page's 50/50 line, then the product at full width ---------- */
.sfx-hero{ padding: clamp(48px, 7vw, 96px) 0 0 !important; }
.sfx-hero-grid{ display: block !important; }
.sfx-hero-grid > div:first-child{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr;
  column-gap: var(--lp-gap);
  align-items: start;
}
.sfx-hero-grid > div:first-child > .sfx-kicker{ grid-column: 1 / -1; grid-row: 1; justify-self: start; }
.sfx-hero-grid > div:first-child > .sfx-h1{ grid-column: 1 / -1; grid-row: 2; max-width: 22ch; }
.sfx-hero-grid > div:first-child > .sfx-sub{ grid-column: 1; grid-row: 3 / span 2; margin-top: 36px !important; max-width: none; }
.sfx-hero-grid > div:first-child > .sfx-ctas{
  grid-column: 2; grid-row: 3; margin-top: 40px !important;
  flex-direction: column; align-items: flex-start; gap: 16px !important;
}
.sfx-hero-grid > div:first-child > .sfx-micro{
  grid-column: 2; grid-row: 4; margin-top: 22px !important;
  flex-direction: column; gap: 8px !important;
}
.sfx-h1{
  font-size: clamp(40px, 6vw, 80px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
  margin-top: 22px !important;
}
.sfx-sub{ font-size: 19px !important; line-height: 1.6 !important; }
.sfx-micro{ font-size: 15px !important; }
.sfx-secondary{ font-size: 16px !important; }

.lp-hero-shot{
  margin: clamp(40px, 5vw, 64px) 0 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--lp-rule);
  border-bottom: 0;
  box-shadow: var(--lp-shadow);
  background: #000;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
          mask-image: linear-gradient(#000 78%, transparent);
}
.lp-hero-shot picture{ display: block; }
.lp-hero-shot img{ display: block; width: 100%; height: auto; }

@media (max-width: 900px){
  .sfx-hero-grid > div:first-child{ display: block; }
  .sfx-hero-grid > div:first-child > .sfx-sub{ margin-top: 22px !important; }
  .sfx-hero-grid > div:first-child > .sfx-ctas{ margin-top: 28px !important; }
  .sfx-hero-grid > div:first-child > .sfx-micro{ margin-top: 18px !important; }
  .lp-hero-shot{ border-radius: 10px 10px 0 0; }
}
@media (max-width: 700px){
  .lp-hero-shot{ max-width: 400px; margin-left: auto; margin-right: auto; border-radius: 14px; border-bottom: 1px solid var(--lp-rule); }
}

/* ---------- section heads: heading left, lead right, on the same 50/50
   line as the hero; whatever follows (steps, table, lists, plans) takes the
   full width under both ---------- */
.sfx-section > .container:has(> .sfx-h2:first-child){
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--lp-gap);
  align-items: start;
}
.sfx-section > .container:has(> .sfx-h2:first-child) > *{ grid-column: 1 / -1; }
.sfx-section > .container > .sfx-h2:first-child{ grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; }
.sfx-section > .container > .sfx-h2:first-child + .sfx-lead{ grid-column: 2; grid-row: 1; margin-top: 4px !important; max-width: none !important; }
.sfx-section > .container > .sfx-h2:first-child + .sfx-lead + .sfx-lead{ grid-column: 2; grid-row: 2; margin-top: 16px !important; max-width: none !important; }
.sfx-section > .container > .sfx-h2:first-child ~ :not(.sfx-lead):not(.sfx-h2){ margin-top: clamp(36px, 4vw, 52px) !important; }
/* a note that follows a table or list reads as a footnote, not a second lead */
.sfx-section > .container > :not(.sfx-h2):not(.sfx-lead) ~ .sfx-lead,
.sfx-section > .container > :not(.sfx-h2):not(.sfx-lead) ~ p{
  max-width: 72ch !important; font-size: 16px !important; margin-top: 18px !important;
}
/* Pipedrive tutorial: heading and chapters left, the video right */
.sfx-section[aria-labelledby="sfx-video-h"] > .container:has(> .sfx-h2:first-child){ grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sfx-section[aria-labelledby="sfx-video-h"] > .container > .sfx-h2:first-child{ grid-row: 1; }
.sfx-section[aria-labelledby="sfx-video-h"] > .container > .sfx-h2:first-child ~ .lp-chapters{ grid-column: 1 !important; grid-row: 2; margin-top: 28px !important; }
.sfx-section[aria-labelledby="sfx-video-h"] > .container > .sfx-h2:first-child ~ .lp-video{ grid-column: 2 !important; grid-row: 1 / span 2; margin-top: 0 !important; align-self: start; }
@media (max-width: 900px){
  .sfx-section > .container:has(> .sfx-h2:first-child){ display: block; }
  .sfx-section > .container > .sfx-h2:first-child + .sfx-lead{ margin-top: 16px !important; }
  .sfx-section[aria-labelledby="sfx-video-h"] > .container > .sfx-h2:first-child ~ .lp-video{ margin-top: 24px !important; }
  .sfx-section[aria-labelledby="sfx-video-h"] > .container > .sfx-h2:first-child ~ .lp-chapters{ margin-top: 24px !important; }
}

/* ---------- the connection notes were styled for the old light page ---------- */
section[aria-labelledby="sfx-admins-h"] .container > div[style]{
  background: var(--p-surf, #12141c) !important;
  border: 1px solid var(--lp-rule) !important;
  border-radius: 14px !important;
  padding: 22px 26px !important;
}
section[aria-labelledby="sfx-admins-h"] .container > div[style] b{ color: var(--p-ivory, #ebe9e4); font-size: 17px; }
section[aria-labelledby="sfx-admins-h"] .container > div[style] p{ font-size: 16px !important; }

/* ---------- setup: a real sequence, each step in its own block ---------- */
.sfx-steps{
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 36px !important;
}
.sfx-steps:has(> .sfx-step:nth-child(6):last-child){ grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sfx-step{
  background: var(--p-surf, #12141c) !important;
  border: 1px solid var(--lp-rule) !important;
  border-radius: 16px !important; box-shadow: none !important;
  padding: 24px 24px 28px !important;
  transition: border-color .2s ease, transform .2s ease;
}
.sfx-step:hover{ border-color: rgba(169,157,255,.35) !important; transform: translateY(-2px); }
.sfx-step-num{
  width: auto !important; height: auto !important; border-radius: 0 !important;
  background: none !important; color: var(--p-violet-ink) !important;
  font-family: var(--p-mono); font-size: 13px !important; font-weight: 500 !important;
  justify-content: flex-start !important; letter-spacing: .08em;
}
.sfx-step-num::before{ content: "0"; }
.sfx-step h3{ font-size: 19px !important; margin-top: 10px !important; letter-spacing: -.01em; }
.sfx-step p{ font-size: 15.5px !important; line-height: 1.6 !important; }
@media (max-width: 1000px){
  .sfx-steps, .sfx-steps:has(> .sfx-step:nth-child(6):last-child){ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px){
  .sfx-steps, .sfx-steps:has(> .sfx-step:nth-child(6):last-child){ grid-template-columns: 1fr !important; }
}

/* ---------- create / manage / badges: the real panel, large ---------- */
.sfx-split{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; align-items: start !important; }
.sfx-split__text{ position: sticky; top: 96px; }
.sfx-split__text h2{ font-size: clamp(30px, 3.4vw, 46px) !important; letter-spacing: -.03em !important; }
.sfx-split__text{ padding-top: 0; }
.sfx-visual > *{ max-width: none !important; }
.lp-panel{
  margin: 0 auto; width: 100%; max-width: 400px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--lp-rule);
  box-shadow: var(--lp-shadow);
  background: #0b0b10;
}
.lp-panel__bar{
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; background: #202124; color: #e8eaed; font-size: 12.5px;
}
.lp-panel__bar img{ width: 16px; height: 16px; }
.lp-panel__bar span{ margin-left: auto; opacity: .6; }
.lp-panel img.lp-panel__img{
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(#000 94%, transparent);
          mask-image: linear-gradient(#000 94%, transparent);
}
.lp-badges{
  margin: 0; width: 100%; max-width: 560px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--lp-rule); box-shadow: var(--lp-shadow);
}
.lp-badges img{ display: block; width: 100%; height: auto; }
.ft-ico{ border-radius: 10px !important; }
@media (max-width: 920px){ .sfx-split__text{ position: static; } }

/* ---------- differentiator + connection: columns on rules, no icon chips ---------- */
section[aria-labelledby="sfx-diff-h"] .ft-list,
section[aria-labelledby="sfx-admins-h"] .ft-list{
  display: grid !important; gap: 0 36px; margin-top: 36px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
section[aria-labelledby="sfx-diff-h"] .ft-list:has(> .ft-item:nth-child(4)),
section[aria-labelledby="sfx-admins-h"] .ft-list:has(> .ft-item:nth-child(4)){ grid-template-columns: repeat(2, minmax(0, 1fr)); }
section[aria-labelledby="sfx-diff-h"] .ft-item,
section[aria-labelledby="sfx-admins-h"] .ft-item,
section[aria-labelledby="sfx-diff-h"] .ft-item:first-child,
section[aria-labelledby="sfx-admins-h"] .ft-item:first-child{
  display: block !important; padding: 22px 0 26px !important;
  border-top: 1px solid var(--lp-rule) !important;
}
section[aria-labelledby="sfx-diff-h"] .ft-ico,
section[aria-labelledby="sfx-admins-h"] .ft-ico{ display: none !important; }
section[aria-labelledby="sfx-diff-h"] .ft-item b,
section[aria-labelledby="sfx-admins-h"] .ft-item b{ font-size: 18px !important; }
section[aria-labelledby="sfx-diff-h"] .ft-item p,
section[aria-labelledby="sfx-admins-h"] .ft-item p{ margin-top: 8px !important; font-size: 16px !important; line-height: 1.6 !important; }
@media (max-width: 900px){
  section[aria-labelledby="sfx-diff-h"] .ft-list,
  section[aria-labelledby="sfx-admins-h"] .ft-list,
  section[aria-labelledby="sfx-diff-h"] .ft-list:has(> .ft-item:nth-child(4)),
  section[aria-labelledby="sfx-admins-h"] .ft-list:has(> .ft-item:nth-child(4)){ grid-template-columns: 1fr; }
}

/* ---------- workflows: two even columns on rules ---------- */
.sfx-flows{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 48px !important; margin-top: 32px !important; }
.sfx-flow{
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  border-top: 1px solid var(--lp-rule) !important; padding: 22px 0 24px !important;
}
.sfx-flow b{ font-size: 17px !important; }
.sfx-flow span{ font-size: 16px !important; line-height: 1.6 !important; }
@media (max-width: 760px){ .sfx-flows{ grid-template-columns: 1fr !important; } }

/* ---------- pricing: three plans, flat, Base marked by its edge ---------- */
.sfx-price{ grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sfx-plan{ box-shadow: none !important; padding: 28px !important; }
.sfx-plan p{ font-size: 15.5px !important; line-height: 1.6 !important; }
.sfx-plan.sfx-plan-hi{
  background: var(--p-surf-2, #181a24) !important;
  border: 1px solid var(--p-violet) !important;
  box-shadow: none !important;
}
.sfx-plan .pl-price{ font-size: 40px !important; letter-spacing: -.03em; }
@media (max-width: 760px){ .sfx-price{ grid-template-columns: 1fr !important; } }
/* Monthly / Yearly switch above the plans (plan-toggle.js) */
.sfx-section > .container > .sfx-h2:first-child ~ .lp-billing{ justify-self: start; }
.sfx-section > .container > .sfx-h2:first-child ~ .lp-billing + .sfx-price{ margin-top: 22px !important; }
.lp-billing{
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--p-surf, #12141c); border: 1px solid var(--lp-rule);
}
.lp-billing button{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border: 0; border-radius: 999px; background: transparent;
  color: var(--lp-text-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.lp-billing button:hover{ color: var(--p-ivory, #ebe9e4); }
.lp-billing button[aria-pressed="true"]{ background: var(--p-violet, #6651f6); color: #fff; }
.lp-billing button:focus-visible{ outline: 2px solid var(--p-violet-ink, #a99dff); outline-offset: 2px; }
.lp-billing__save{
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(62,207,109,.16); color: #6ee59a;
}
.lp-billing button[aria-pressed="true"] .lp-billing__save{ background: rgba(255,255,255,.18); color: #fff; }
.sfx-plan .pl-billed{ margin-top: 6px; font-size: 14px; color: var(--lp-text-2); }
@media (prefers-reduced-motion: reduce){ .lp-billing button{ transition: none; } }
.sfx-plan{ display: flex !important; flex-direction: column; }
.sfx-plan p{ flex: 1 0 auto; }
.sfx-plan-btn{
  display: block; margin-top: 22px; padding: 13px 18px; border-radius: 12px;
  text-align: center; font-weight: 600; font-size: 15px; text-decoration: none !important;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.sfx-plan-btn:hover{ transform: translateY(-1px); }
.sfx-plan-btn:active{ transform: translateY(0); }
.sfx-plan-btn:focus-visible{ outline: 2px solid var(--p-violet-ink); outline-offset: 3px; }
.sfx-plan-btn--free{ background: #3ecf6d; color: #08301b !important; box-shadow: 0 12px 30px rgba(62,207,109,.22); }
.sfx-plan-btn--free:hover{ box-shadow: 0 14px 34px rgba(62,207,109,.34); }
.sfx-plan-btn--base{ background: var(--p-violet, #6651f6); color: #fff !important; box-shadow: 0 12px 30px rgba(102,81,246,.35); }
.sfx-plan-btn--base:hover{ background: #7563ff; }
.sfx-plan-btn--pro{ background: transparent; color: var(--p-violet-ink, #a99dff) !important; border-color: rgba(169,157,255,.45); }
.sfx-plan-btn--pro:hover{ background: rgba(102,81,246,.14); }
@media (prefers-reduced-motion: reduce){ .sfx-step, .sfx-plan-btn{ transition: none; } .sfx-step:hover, .sfx-plan-btn:hover{ transform: none; } }

/* ---------- tutorial video + chapters (Pipedrive) ---------- */
.lp-video{ width: 100%; }
.lp-video__box{
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; background: #0b0b14;
  border: 1px solid var(--lp-rule); box-shadow: var(--lp-shadow);
}
.lp-chapters{ list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lp-rule); }
.lp-chapters li{ border-bottom: 1px solid var(--lp-rule); }
.lp-chapters button{
  display: flex; align-items: baseline; gap: 18px; width: 100%;
  padding: 11px 12px; margin: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--lp-text); text-align: left;
  font: inherit; font-size: 16px; line-height: 1.45; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.lp-chapters__t{
  flex: none; min-width: 3.2em; font-family: var(--p-mono); font-size: 14px;
  color: var(--p-violet-ink, #a99dff); font-variant-numeric: tabular-nums;
}
.lp-chapters button:hover{ background: rgba(169,157,255,.08); color: var(--p-ivory, #ebe9e4); }
.lp-chapters button:focus-visible{ outline: 2px solid var(--p-violet-ink, #a99dff); outline-offset: -2px; }
.lp-chapters button[aria-current="true"]{ background: rgba(102,81,246,.16); color: var(--p-ivory, #ebe9e4); }
.lp-chapters button[aria-current="true"] .lp-chapters__l{ font-weight: 600; }
@media (max-width: 900px){
  /* phones: the video right under the heading, chapters below it */
  .sfx-section[aria-labelledby="sfx-video-h"] > .container{ display: flex !important; flex-direction: column; }
  .sfx-section[aria-labelledby="sfx-video-h"] .lp-video{ order: 1; }
  .sfx-section[aria-labelledby="sfx-video-h"] .lp-chapters{ order: 2; }
}
@media (prefers-reduced-motion: reduce){ .lp-chapters button{ transition: none; } }

/* ---------- closing band: flat, no glow ---------- */
.sfx-final{
  background: #17143a !important; border: 1px solid var(--p-edge) !important; box-shadow: none !important;
  border-radius: 20px !important; padding: clamp(40px, 6vw, 72px) !important; text-align: left !important;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 14px 40px; align-items: start; align-content: center; min-height: 0 !important;
}
.sfx-final h2{ margin: 0 !important; color: #fff !important; font-size: clamp(28px, 3.4vw, 44px) !important; letter-spacing: -.03em; grid-column: 1; }
.sfx-final p{ color: rgba(255,255,255,.82) !important; grid-column: 1; margin: 0 !important; max-width: 56ch; }
.sfx-final .sfx-ctas{ grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0 !important; justify-content: flex-end !important; }
.sfx-final .sfx-install{ background: #fff !important; color: #1a1340 !important; box-shadow: none !important; }
.sfx-final .sfx-install:hover{ background: #ece9ff !important; }
@media (max-width: 760px){
  .sfx-final{ display: block; }
  .sfx-final .sfx-ctas{ margin-top: 22px !important; justify-content: flex-start !important; }
}

@media (prefers-reduced-motion: reduce){
  .sfx-install, .sfx-install:hover{ transition: none !important; transform: none !important; }
}
