/* CSS Field Systems · Tools · "Why this tool" pages
   Shared layout for the six product pages (P1–P6). Built on css-pro tokens.css +
   components.css (load those first). Namespace: .pt-*  Product glyph strokes: .g-*
   Rules: no hardcoded colors — every color is a --pro-* token or derived from one,
   so the Color & layout palettes (light and dark) repaint the page correctly. */

:root {
  /* Hairline that survives dark palettes (derived from ink, not a fixed rgba). */
  --pt-hair: color-mix(in srgb, var(--pro-ink) 22%, transparent);
  --pt-hair-soft: color-mix(in srgb, var(--pro-ink) 10%, transparent);
}

/* ------------------------------------------------------------------ shell */
.pt-main { max-width: 1120px; padding-top: 0; padding-bottom: 0; }
.pt-main a:focus-visible,
.pt-main button:focus-visible {
  outline: 2px solid var(--pro-brand);
  outline-offset: 2px;
}
.pt-mono {
  font-family: var(--pro-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ header */
.pt-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px 48px;
  align-items: center;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--pro-line);
}
.pt-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pro-muted);
}
.pt-code {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--pt-hair);
  border-radius: var(--pro-r-sm);
  font-family: var(--pro-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--pro-ink);
  background: var(--pro-surface);
}
.pt-eyebrow .pt-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pt-hair); }
.pt-head h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 1.35rem + 2.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.06;
  color: var(--pro-ink);
}
.pt-promise {
  margin: 0 0 24px;
  max-width: 56ch;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--pro-muted);
}
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pt-actions .pt-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--pro-muted);
}

/* Product glyph — schematic of the tool, drawn in CSS/SVG with tokens. */
.pt-glyph {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r-lg);
  background: var(--pro-surface);
  box-shadow: var(--pro-shadow-sm);
  position: relative;
}
.pt-glyph::after {
  /* quiet 8px grid inside the glyph card */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(var(--pt-hair-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--pt-hair-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.pt-glyph svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 300px;
  overflow: visible;
}
.pt-glyph .pt-glyph-tag {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--pro-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--pro-muted);
}
/* glyph strokes / fills (all token-derived) */
.g-l  { fill: none; stroke: var(--pt-hair); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-i  { fill: none; stroke: var(--pro-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-b  { fill: none; stroke: var(--pro-brand); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-m  { fill: none; stroke: var(--pro-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-fs { fill: var(--pro-surface); }
.g-f2 { fill: var(--pro-surface-2); }
.g-fb { fill: var(--pro-brand); }
.g-fbs{ fill: var(--pro-brand-soft); }
.g-fi { fill: var(--pro-ink); }
.g-fm { fill: var(--pro-muted); }
.g-fh { fill: var(--pt-hair); }
.g-fok{ fill: var(--pro-ok); }
.g-t  { font-family: var(--pro-mono); font-size: 7px; fill: var(--pro-muted); letter-spacing: 0.04em; }
.g-ti { font-family: var(--pro-mono); font-size: 7px; fill: var(--pro-ink); letter-spacing: 0.04em; }
.g-tb { font-family: var(--pro-mono); font-size: 7px; fill: var(--pro-surface); letter-spacing: 0.04em; } /* text on brand fill */
.g-tk { font-family: var(--pro-mono); font-size: 7px; fill: var(--pro-bg); letter-spacing: 0.04em; }      /* text on ink fill */

/* ------------------------------------------------------------------ sections */
.pt-sec {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--pro-line);
}
.pt-sec:last-of-type { border-bottom: 0; }
.pt-sec-head { position: sticky; top: 76px; align-self: start; }
.pt-sec-n {
  display: block;
  margin-bottom: 10px;
  font-family: var(--pro-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pro-muted);
}
.pt-sec-head h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--pro-ink);
}
.pt-sec-head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pro-muted);
  max-width: 28ch;
}
.pt-sec-body { min-width: 0; }

/* The problem */
.pt-prob {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--pro-ink);
  max-width: 62ch;
}
.pt-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pt-bullets li {
  position: relative;
  padding: 14px 0 0 14px;
  border-top: 1px solid var(--pt-hair);
  font-size: 14px;
  line-height: 1.5;
  color: var(--pro-ink);
}
.pt-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--pro-brand);
}
.pt-bullets li strong { font-weight: 600; }

/* What the tool does — cards with inline icons */
.pt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 12px;
}
.pt-card {
  padding: 18px;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r);
  background: var(--pro-surface);
  transition: border-color var(--pro-t);
}
.pt-card:hover { border-color: var(--pt-hair); }
.pt-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--pro-r-sm);
  background: var(--pro-surface-2);
  border: 1px solid var(--pro-line);
  color: var(--pro-brand);
  margin-bottom: 14px;
}
.pt-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pt-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pro-ink);
}
.pt-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--pro-muted); }

/* How it lands in the shop — steps */
.pt-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}
.pt-step {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r);
  background: var(--pro-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pt-step-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.pt-step-n {
  font-family: var(--pro-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pro-brand);
}
.pt-step-time {
  font-family: var(--pro-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--pro-muted);
  padding: 2px 8px;
  border: 1px solid var(--pro-line);
  border-radius: 999px;
  background: var(--pro-surface-2);
  white-space: nowrap;
}
.pt-step h3 { margin: 4px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--pro-ink); }
.pt-step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--pro-muted); }
.pt-steps-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pro-muted);
}

/* What's included */
.pt-incl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
.pt-incl li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pt-hair-soft);
  font-size: 14px;
  line-height: 1.45;
  color: var(--pro-ink);
}
.pt-incl li svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  fill: none;
  stroke: var(--pro-brand);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt-incl li small { display: block; font-size: 12.5px; color: var(--pro-muted); }

/* Pairs with */
.pt-pairs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.pt-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r);
  background: var(--pro-surface);
  color: var(--pro-ink);
  text-decoration: none;
  transition: border-color var(--pro-t), transform var(--pro-t);
}
.pt-pair:hover { border-color: var(--pro-ink); }
.pt-pair:hover .pt-pair-arrow { transform: translateX(3px); }
.pt-pair-k {
  display: block;
  font-family: var(--pro-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pro-muted);
  margin-bottom: 3px;
}
.pt-pair-t { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.pt-pair-arrow {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--pro-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--pro-t);
}

/* Closing CTA */
.pt-close {
  margin: 8px 0 0;
  padding: 30px 32px;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r-xl);
  background: var(--pro-surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: center;
  box-shadow: var(--pro-shadow-sm);
}
.pt-close h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--pro-ink);
}
.pt-close p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--pro-muted); max-width: 54ch; }
.pt-close-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pt-close-actions .pro-row { justify-content: flex-end; }
.pt-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: flex-end;
  font-family: var(--pro-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--pro-muted);
}
.pt-contact a { color: var(--pro-ink); text-decoration: none; border-bottom: 1px solid var(--pt-hair); }
.pt-contact a:hover { border-bottom-color: var(--pro-ink); }

/* Footer spacing tweak for these pages */
.pt-foot { margin-top: 40px; }
.pt-foot .pro-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.pt-foot .pt-mono { font-size: 12px; }

/* topbar pill: hide on narrow screens so the brand line has room */
@media (max-width: 640px) {
  .pro-topbar .pt-topbar-pill, .pro-topbar .pt-brand-pre { display: none; }
  .pro-topbar .pro-row .pro-btn { white-space: nowrap; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .pt-head { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px 32px; }
  .pt-sec { grid-template-columns: 200px minmax(0, 1fr); gap: 16px 32px; }
  .pt-bullets { grid-template-columns: 1fr; gap: 0; }
  .pt-bullets li { padding: 12px 0 12px 14px; }
  .pt-bullets li::before { top: 19px; }
  .pt-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pt-head { grid-template-columns: 1fr; padding: 28px 0 28px; }
  .pt-glyph { order: -1; max-width: 340px; aspect-ratio: 16 / 9; padding: 20px; }
  .pt-glyph svg { max-width: 240px; }
  .pt-sec { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .pt-sec-head { position: static; }
  .pt-eyebrow .pt-dot { display: none; }
  .pt-sec-head p { max-width: none; }
  .pt-incl { grid-template-columns: 1fr; }
  .pt-close { grid-template-columns: 1fr; padding: 22px 20px; }
  .pt-close-actions { align-items: flex-start; }
  .pt-close-actions .pro-row { justify-content: flex-start; }
  .pt-contact { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .pt-actions .pro-btn { width: 100%; }
  .pt-close-actions .pro-row { width: 100%; }
  .pt-close-actions .pro-btn { width: 100%; }
  .pt-glyph { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-pair, .pt-pair-arrow, .pt-card { transition: none; }
}
