/* =====================================================================
   Notebook-paper theme: tokens and shared pieces used by the portal
   (with base.css + portal.css) and the public website (with site.css).
   Plain system fonts only, so text stays easy to read and loads at once.
   Client lead forms (f/) keep their own brand theming and don't load this.
   ===================================================================== */
:root {
  --pp-paper: #f7f7f3;
  --pp-sheet: #ffffff;
  --pp-ink: #1f2a3d;
  --pp-ink-2: #475569;
  --pp-ink-3: #667085;
  --pp-rule: rgba(52, 101, 170, .065);
  --pp-margin: rgba(214, 82, 72, .26);
  --pp-edge: #e6e6de;
  --pp-edge-strong: #d3d4cb;
  --pp-action: #2456c6;
  --pp-action-dark: #1b449f;
  --pp-pen: #2456c6;
  --pp-pen-soft: #e9f0fd;
  --pp-yellow: #ffe985;
  --pp-hover: #f4f7fe;
  --pp-note-yellow: #fff6cc;
  --pp-note-pink: #ffe9ee;
  --pp-note-blue: #e6f0ff;
  --pp-note-green: #e5f5df;
  --pp-green: #1d7a43;
  --pp-amber: #92570a;
  --pp-violet: #6d3fc4;
  --pp-red: #b42318;
  --pp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pp-shadow: 0 1px 2px rgba(31, 42, 61, .05), 0 4px 14px rgba(31, 42, 61, .05);
  --pp-shadow-lift: 0 2px 4px rgba(31, 42, 61, .07), 0 12px 28px rgba(31, 42, 61, .10);
}

/* Ruled notebook page */
.pp-ruled {
  background-color: var(--pp-paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--pp-rule) 31px, var(--pp-rule) 32px);
}

/* Highlighter stroke behind a few words */
.pp-mark {
  background: linear-gradient(transparent 56%, var(--pp-yellow) 56%, var(--pp-yellow) 91%, transparent 91%);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* A loose sheet lying on the page */
.pp-sheet { background: var(--pp-sheet); border: 1px solid var(--pp-edge); border-radius: 8px; box-shadow: var(--pp-shadow); }

/* A strip of tape holding something down */
.pp-tape { position: relative; }
.pp-tape::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 20px; z-index: 2;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(240, 214, 130, .55);
  border-left: 2px dotted rgba(120, 96, 30, .25); border-right: 2px dotted rgba(120, 96, 30, .25);
  pointer-events: none;
}

/* ---------- Visual "how it works" steps ---------- */
.pp-howto {
  background: var(--pp-sheet); border: 1px solid var(--pp-edge); border-radius: 10px; box-shadow: var(--pp-shadow);
  padding: 14px 18px 16px; margin: 0 0 18px; color: var(--pp-ink);
}
.pp-howto-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-howto-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.35; }
.pp-howto-toggle {
  flex: none; border: 1px solid var(--pp-edge-strong); background: var(--pp-sheet); color: var(--pp-ink-2);
  border-radius: 999px; padding: 5px 12px; font: 600 12px/1.2 var(--pp-font); cursor: pointer;
}
.pp-howto-toggle:hover { background: var(--pp-hover); color: var(--pp-ink); }
.pp-howto.is-closed { padding-top: 10px; padding-bottom: 10px; }
.pp-howto.is-closed .pp-howto-body { display: none; }

.pp-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
.pp-step { position: relative; min-width: 0; }
.pp-step-icon {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #b9c9ee; background: var(--pp-note-yellow); color: var(--pp-ink); font-size: 19px;
}
.pp-step:nth-child(4n+2) .pp-step-icon { background: var(--pp-note-blue); }
.pp-step:nth-child(4n+3) .pp-step-icon { background: var(--pp-note-pink); }
.pp-step:nth-child(4n+4) .pp-step-icon { background: var(--pp-note-green); }
.pp-step-no {
  position: absolute; top: -5px; right: -7px; width: 21px; height: 21px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pp-action); color: #fff; font: 700 11px/1 var(--pp-font); font-style: normal;
}
/* Pen line joining one step to the next */
.pp-step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 62px; right: -6px; border-top: 2px dashed var(--pp-edge-strong);
}
.pp-step-title { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 750; line-height: 1.35; }
.pp-step-text { margin: 3px 0 0; font-size: 12.8px; line-height: 1.55; color: var(--pp-ink-2); }
.pp-howto-tip {
  margin: 14px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--pp-hover);
  font-size: 12.8px; line-height: 1.55; color: var(--pp-ink);
}
.pp-howto-tip a { font-weight: 700; }

@media (max-width: 760px) {
  .pp-howto { padding: 12px 14px 14px; }
  .pp-howto.is-closed { padding-top: 9px; padding-bottom: 9px; }
  .pp-steps { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 0; }
  .pp-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-content: start; padding-bottom: 16px; }
  .pp-step:last-child { padding-bottom: 0; }
  .pp-step-icon { grid-row: 1 / span 2; }
  .pp-step-title { margin-top: 2px; grid-column: 2; }
  .pp-step-text { grid-column: 2; }
  .pp-step:not(:last-child)::after { top: 50px; bottom: 4px; left: 22px; right: auto; border-top: 0; border-left: 2px dashed var(--pp-edge-strong); }
}
