/* ProtoLens marketing page: shared web components with a scoped product accent. */
#protolens {
  --pl-ink: #34635C;
  --pl-surface: #457C73;
  --pl-soft: #E4EDEB;
}

#protolens main > section { scroll-margin-top: 30px; }
#protolens main p { color: var(--ink-2); }
#protolens .pl-copy { max-width: 700px; }
#protolens .fine { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
#protolens main a:not(.btn) { color: var(--pl-ink); }
#protolens main a,
#protolens .foot-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
#protolens button,
#protolens summary { min-width: 44px; min-height: 44px; }
#protolens a:focus-visible,
#protolens button:focus-visible,
#protolens summary:focus-visible { outline: 3px solid var(--pl-ink); outline-offset: 5px; }
#protolens main .eyebrow { color: var(--pl-ink); }
#protolens .hero { padding-bottom: 0; }
#protolens .hero > .section-divider { margin-top: 0; }
#protolens .hero h1 { max-width: 820px; }
#protolens .pl-access-note { margin: 18px 0 0; }
#protolens .pl-hero-evidence { margin-top: 30px; }
#protolens .evidence picture { display: block; }
#protolens .evidence img { height: auto; }
#protolens .pl-mini-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}
#protolens .pl-mini-node { padding: 2px 9px; border: 1px solid var(--line); border-radius: 99px; }
#protolens .pl-mini-arrow { flex: none; }
#protolens .pl-mini-loop { width: 20px; height: 20px; flex: none; }
#protolens .pl-cycle { margin: 30px 0; }
#protolens .pl-cycle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
#protolens .pl-role {
  display: inline-block;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-2);
  background: var(--panel);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
/* Deep neutral text keeps the warm role badge above 4.5:1 contrast. */
#protolens .pl-role-you { background: var(--accent-soft); border-color: var(--accent-dk); }
#protolens .pl-role-ai { color: var(--pl-ink); background: var(--pl-soft); }
#protolens .pl-cycle-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto 80px auto;
  column-gap: 40px;
}
#protolens .pl-cycle-step { position: relative; min-width: 0; display: flex; flex-direction: column; }
#protolens .pl-cycle-step-1 { grid-area: 1 / 1; }
#protolens .pl-cycle-step-2 { grid-area: 1 / 2; }
#protolens .pl-cycle-step-3 { grid-area: 1 / 3; }
#protolens .pl-cycle-step-4 { grid-area: 3 / 3; align-self: start; }
#protolens .pl-cycle-step-5 { grid-area: 3 / 2; align-self: start; }
#protolens .pl-cycle-card {
  flex: 1;
  min-height: 180px;
  padding: 20px;
  border-radius: 14px;
  background: var(--panel);
  overflow-wrap: anywhere;
}
#protolens .pl-cycle-card::after { content: none; }
#protolens .pl-cycle-meta { display: flex; align-items: start; gap: 10px; margin-bottom: 14px; }
#protolens .pl-cycle-number { flex: none; color: var(--ink-2); font: 13px/2 var(--mono); }
#protolens .pl-cycle-card h3 { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
#protolens .pl-cycle-card p { font-size: 14px; line-height: 1.8; margin: 0; }
#protolens .pl-cycle-first { display: block; font-size: 13px; line-height: 1.7; margin-top: 12px; }
#protolens .pl-cycle-arrow { position: absolute; right: -40px; top: calc(50% - 12px); width: 40px; height: 24px; color: var(--pl-ink); }
#protolens .pl-arrow-head { fill: currentColor; stroke: none; }
#protolens .pl-cycle-step-3 .pl-cycle-arrow {
  top: auto;
  bottom: -52px;
  left: calc(50% - 40px);
  width: 80px;
  transform: rotate(90deg);
}
#protolens .pl-cycle-step-4 .pl-cycle-arrow { right: auto; left: -40px; transform: rotate(180deg); }
/* The return runs through the row gap: 5's top centre to 3's lower left.
   Its endpoint stays separate from the solid 3 → 4 connector. */
#protolens .pl-cycle-return {
  position: relative;
  grid-area: 2 / 2;
  margin-left: 50%;
  width: calc(50% + 56px);
  height: 80px;
  color: var(--pl-ink);
}
#protolens .pl-return-desktop { display: block; width: 100%; height: 100%; }
#protolens .pl-return-line { stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
#protolens .pl-return-tip { position: absolute; width: 16px; height: 16px; }
#protolens .pl-return-tip-desktop { right: -8px; top: -2px; }
#protolens .pl-return-mobile,
#protolens .pl-return-tip-mobile { display: none; }
#protolens .pl-cycle-return-label {
  grid-area: 2 / 2;
  align-self: start;
  margin: 4px 0 0;
  color: var(--pl-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#protolens .pl-handoff {
  position: relative;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--pl-soft);
  overflow-wrap: anywhere;
}
#protolens .pl-handoff-line { position: absolute; top: -27px; left: calc(50% - 12px); width: 24px; height: 26px; color: var(--pl-ink); }
#protolens .pl-handoff p { margin: 0; color: var(--pl-ink); font-size: 13px; line-height: 1.8; }
#protolens .pl-review-support {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
#protolens .pl-review-support > * { min-width: 0; }
#protolens .pl-review-support .evidence { margin-top: 0; }
#protolens .pl-panel-evidence { width: 100%; max-width: 320px; }
#protolens .pl-submitted-evidence { margin-bottom: 0; }
#protolens .pl-submitted-evidence img { border-radius: 12px; }
#protolens .note { border-left-color: var(--pl-surface); }
#protolens .pl-trust { margin-top: 26px; }
#protolens .pl-trust h4 { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
#protolens .pl-trust-links { line-height: 2; }
#protolens .pl-plans { align-items: stretch; margin-top: 26px; }
#protolens .pl-plans > * { min-width: 0; }
#protolens .pl-plans h3 { margin: 20px 0 14px; }
#protolens .pl-plans ul { margin: 0; padding-left: 22px; color: var(--ink-2); }
#protolens .pl-plans li { margin-bottom: 10px; }
#protolens .pl-plans li:last-child { margin-bottom: 0; }
#protolens .pl-plans .badge { max-width: 100%; white-space: normal; }
#protolens .pl-faq { max-width: none; margin: 0; }
#protolens .pl-faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
#protolens .pl-faq summary { padding: 8px 0; line-height: 1.8; }
#protolens .pl-faq details p { max-width: 760px; margin: 14px 0 4px; }
#protolens #final-cta { padding-bottom: 70px; }

@media (min-width: 821px) {
  /* Match the return SVG's horizontal span; its line is at the row's midpoint. */
  #protolens .pl-cycle-return-label {
    align-self: center;
    margin: 0 0 0 50%;
    width: calc(50% + 56px);
    text-align: center;
    transform: translateY(calc(-50% - 5px));
  }
}

@media (max-width: 680px) {
  #protolens .pl-review-support { grid-template-columns: minmax(0, 1fr); }
  #protolens .pl-panel-evidence { justify-self: center; }
  #protolens .pl-hero-evidence picture { max-width: 390px; margin-inline: auto; }
  #protolens .pl-hero-evidence img { aspect-ratio: 390 / 844; }
}

@media (max-width: 820px) {
  #protolens .pl-cycle-map {
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-rows: auto 36px auto 36px auto 36px auto 36px auto auto;
    column-gap: 12px;
  }
  #protolens .pl-cycle-step-1 { grid-area: 1 / 1; }
  #protolens .pl-cycle-step-2 { grid-area: 3 / 1; }
  #protolens .pl-cycle-step-3 { grid-area: 5 / 1; }
  #protolens .pl-cycle-step-4 { grid-area: 7 / 1; }
  #protolens .pl-cycle-step-5 { grid-area: 9 / 1; }
  #protolens .pl-cycle-card { min-height: 0; padding: 18px; }
  #protolens .pl-cycle-step-4 .pl-cycle-card {
    position: static;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }
  #protolens .pl-handoff {
    margin-top: 0;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
  }
  #protolens .pl-handoff-line { display: none; }
  #protolens .pl-cycle-arrow,
  #protolens .pl-cycle-step-3 .pl-cycle-arrow,
  #protolens .pl-cycle-step-4 .pl-cycle-arrow {
    top: auto;
    right: auto;
    bottom: -30px;
    left: calc(50% - 18px);
    width: 36px;
    height: 24px;
    transform: rotate(90deg);
  }
  #protolens .pl-cycle-return { grid-area: 5 / 2 / 10 / 3; width: 36px; height: auto; margin-left: -12px; }
  #protolens .pl-return-desktop,
  #protolens .pl-return-tip-desktop { display: none; }
  #protolens .pl-return-mobile { display: block; width: 100%; height: 100%; }
  #protolens .pl-return-tip-mobile { display: block; left: -2px; top: -8px; }
  #protolens .pl-cycle-return-label { grid-area: 10 / 1 / 11 / 3; margin-top: 14px; }
}
