/* ============================================================
   Escape — protection layers pillar (escape-protection-layers.html)
   The "you are more than a free Safari blocker" page. Uses global
   tokens from tokens.css. Amber = premium (per token intent), blue =
   the free floor. The layer stack encodes free -> premium build-up.
   ============================================================ */

.p-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--space-6); }

/* ---- hero ---- */
.p-hero { padding: var(--space-16) 0 var(--space-6); }
.p-hero .eyebrow,
.p-eyebrow {
  font-size: var(--t-micro); font-weight: var(--w-medium); letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--amber);
}
.p-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.022em;
  font-weight: var(--w-medium); margin: var(--space-4) 0 0; text-wrap: balance; color: var(--ink-1);
}
.p-hero h1 .am { color: var(--amber); }
.p-hero .p-sub {
  font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); margin: var(--space-5) 0 0;
  max-width: 60ch; text-wrap: pretty;
}
.p-shieldrow {
  display: flex; align-items: center; gap: 10px; margin-top: var(--space-6);
  color: var(--ink-3); font-size: 0.86rem;
}
.p-shieldrow svg { flex: none; }

/* ---- layer stack ---- */
.p-stack { position: relative; margin: var(--space-8) 0 var(--space-6); }
.p-stack::before {
  content: ""; position: absolute; left: 41px; top: 24px; bottom: 32px; width: 2px;
  background: linear-gradient(180deg, var(--line-3), rgba(245,158,11,0.28) 20%, rgba(245,158,11,0.28) 92%, transparent);
}
.p-layer {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4);
  align-items: start; padding: var(--space-5) 0; border-bottom: 1px solid var(--line-1);
}
.p-layer:last-child { border-bottom: 0; }
/* number sits to the LEFT of the dot; the dot sits on the spine at the right of the rail */
.p-rail { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.p-node {
  position: relative; z-index: 2; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); box-shadow: 0 0 0 4px var(--bg); flex: none;
}
.p-layer.free .p-node { border: 2px solid var(--blue); }
.p-layer.premium .p-node { background: var(--amber); box-shadow: 0 0 0 4px var(--bg), 0 0 16px 0 var(--amber-soft); }
.p-layer.custom .p-node { background: var(--ink-3); box-shadow: 0 0 0 4px var(--bg); }
.p-lnum { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.p-lbody { min-width: 0; }
.p-lhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-lhead h2 { font-size: var(--t-h3); font-weight: var(--w-medium); letter-spacing: -0.01em; margin: 0; color: var(--ink-1); line-height: 1.3; }
.p-tier {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: var(--w-semibold); padding: 3px 8px; border-radius: var(--r-pill); flex: none;
}
.p-tier.free { color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(77,163,255,0.22); }
.p-tier.premium { color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(245,158,11,0.28); }
.p-tier.custom { color: var(--ink-2); background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); }
.p-lbody p { margin: 10px 0 0; font-size: 0.94rem; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.p-lbody p .hl { color: var(--ink-1); }
/* state label — its own wrapping line under the title (never nowrap, so it
   cannot force horizontal overflow on narrow screens) */
.p-state {
  display: flex; align-items: center; gap: 8px; margin: 9px 0 0; flex-wrap: wrap;
  font-size: 0.72rem; color: var(--ink-3);
  font-family: var(--font-mono); letter-spacing: 0.02em; text-transform: uppercase;
}
.p-si { width: 22px; height: 22px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 0.72rem; border: 1px solid var(--line-1); flex: none; }
.p-layer.free .p-si { color: var(--blue); }
.p-layer.premium .p-si { color: var(--amber); border-color: rgba(245,158,11,0.28); background: var(--amber-soft); }
.p-layer.custom .p-si { color: var(--ink-2); }

/* ---- where it lives ---- */
.p-lives {
  margin: var(--space-4) 0 var(--space-8); padding: var(--space-5) var(--space-6);
  background: var(--bg-elev); border: 1px solid var(--line-1); border-radius: var(--r-lg);
  display: flex; gap: var(--space-4); align-items: center;
}
.p-lives svg { flex: none; }
.p-lives p { margin: 0; font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
.p-lives b { color: var(--ink-1); font-weight: var(--w-semibold); }

/* ---- closing ---- */
.p-close { margin: var(--space-10) 0 var(--space-16); display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.p-close .p-q {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.45; color: var(--ink-1); max-width: 44ch; letter-spacing: -0.005em;
}
.p-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1px solid rgba(245,158,11,0.28); background: var(--amber-soft); color: var(--blue-hi);
  color: var(--amber); font-weight: var(--w-medium); font-size: 0.92rem;
}
.p-btn:hover { opacity: 0.85; }

@media (prefers-reduced-motion: no-preference) {
  .p-layer { animation: p-rise 0.6s var(--ease) both; }
  .p-layer:nth-child(2) { animation-delay: 0.05s; }
  .p-layer:nth-child(3) { animation-delay: 0.10s; }
  .p-layer:nth-child(4) { animation-delay: 0.15s; }
  .p-layer:nth-child(5) { animation-delay: 0.20s; }
  @keyframes p-rise { from { opacity: 0; transform: translateY(10px); } }
}

@media (max-width: 560px) {
  .p-layer { gap: var(--space-3); }
  .p-lhead { gap: 8px; }
}
