/* Find Your Trading Group (apps/partners).
   Landing composition rules (2026-08-01 design pass, founder-approved
   direction: match the home landing page):
   - ONE spacing system: every section is .pt-section { padding: 96px 0 }.
     Never per-section margins, never standalone border-top separators.
   - Strict canvas/band alternation via .pt-section.alt; the band is an
     EXACT clone of the home page's .analyze strip (#070b0a on #050807,
     white hairlines, one soft green glow). Do not retune those values.
   - One header kit: .es-eyebrow + .pt-h2 + .pt-sub.
   - Boxes are reserved for product artifacts (comparison table, member
     cards, coach chip); arguments are open typography with hairline tops.
   - Page ends on .pt-final, the home page's closer with the bottom glow. */

/* ---- landing: section system ---- */
.pt-section { padding: 96px 0; position: relative; }
.pt-section.alt { isolation: isolate; }
.pt-section.alt::before { content: ""; position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%); width: 100vw; z-index: -1;
  background-color: #070b0a;
  background-image: radial-gradient(ellipse 50% 60% at 78% 40%, rgba(46, 224, 138, 0.06), transparent 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.pt-h2 { margin: 12px 0 14px; font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.12;
  color: var(--text-primary); text-wrap: balance; }
.pt-sub { margin: 0; font-size: 16px; line-height: 1.65;
  color: var(--text-secondary); max-width: 640px; }
.pt-sub b { color: var(--text-primary); font-weight: 600; }

/* ---- hero ---- */
.pt-hero { padding: 64px 0 96px; max-width: 720px; }
.pt-hero h1 { font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 58px); font-weight: 700;
  letter-spacing: var(--ls-display); line-height: 1.05; margin: 16px 0 22px;
  text-wrap: balance; color: var(--text-primary); }
.pt-hero h1 .accent { color: var(--accent); }
.pt-hero .pt-lede { font-size: 17px; line-height: 1.65;
  color: var(--text-secondary); margin: 0 0 28px; max-width: 640px; }
.pt-checkrow { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 26px; }
.pt-check { display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary); }
.pt-check .pt-mk { width: 16px; height: 16px; font-size: 9px; }
.pt-queue-chip { display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 30px; background: var(--surface-well);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 8px 16px 8px 12px; font-family: var(--font-mono); font-size: 12px;
  color: var(--text-secondary); }
.pt-queue-dot { width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .pt-queue-dot { animation: es-pulse 4s ease-in-out infinite; }
}
.pt-queue-chip b { color: var(--text-primary); font-weight: 700; }
.pt-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pt-hero-foot { margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }

/* ---- prose ---- */
.pt-prose { max-width: 680px; }
.pt-prose p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.75;
  color: var(--text-secondary); }
.pt-prose p b { color: var(--text-primary); font-weight: 600; }
.pt-prose p:last-child { margin-bottom: 0; }

/* ---- pain list (open editorial, hairline tops) ---- */
.pt-pain-grid { display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 30px 44px; margin-top: 44px; }
.pt-pain-cell { border-top: 1px solid var(--border); padding: 16px 0 0; }
.pt-pain-cell h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600;
  color: var(--text-primary); }
.pt-pain-cell p { margin: 0; font-size: 13.5px; line-height: 1.6;
  color: var(--text-secondary); }

/* ---- comparison table (product artifact: boxed) ---- */
.pt-cmp-wrap { margin-top: 40px; overflow-x: auto; }
.pt-cmp { min-width: 680px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--surface-well); }
.pt-cmp-row { display: grid; grid-template-columns: 150px 1fr 1.15fr; }
.pt-cmp-row + .pt-cmp-row { border-top: 1px solid var(--border-subtle); }
.pt-cmp-row > div { padding: 15px 20px; }
.pt-cmp-h { background: var(--surface-elevated); }
.pt-cmp-col-t { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.pt-cmp-col-t.new { color: var(--green-300); }
.pt-cmp-col-t .sub { display: block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500; margin-top: 3px; }
.pt-cmp-f { font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  padding-top: 19px; }
.pt-cmp-old, .pt-cmp-new { display: flex; gap: 11px; align-items: flex-start;
  font-size: 14px; line-height: 1.5; }
.pt-cmp-old { color: var(--text-secondary); }
.pt-cmp-new { color: var(--text-primary);
  background: linear-gradient(90deg, rgba(46, 224, 138, 0.07), rgba(46, 224, 138, 0.02));
  border-left: 1px solid var(--border-accent); }
.pt-cmp-h .pt-cmp-new { display: block;
  background: linear-gradient(90deg, rgba(46, 224, 138, 0.12), rgba(46, 224, 138, 0.04)); }
.pt-mk { flex: none; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  font-weight: 700; margin-top: 1px; }
.pt-mk.x { color: var(--down); background: var(--down-soft); }
.pt-mk.ok { color: var(--text-on-accent); background: var(--gradient-brand);
  box-shadow: 0 2px 8px rgba(45, 220, 140, 0.35); }

/* ---- example group (two-col; the stack is a product artifact) ---- */
.pt-example { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px;
  align-items: center; }
.pt-example-stack { position: relative; display: flex; flex-direction: column;
  gap: 10px; background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-inset-hi), var(--shadow-md);
  border-radius: var(--radius-2xl); padding: 22px; }
.pt-example-tag { position: absolute; top: -10px; right: 16px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 3px 10px; }
.pt-example .pt-member, .pt-example .pt-coach { max-width: none; margin: 0; }

/* ---- criteria (open spec sheet) ---- */
.pt-crit-grid { display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 26px; margin-top: 44px; }
.pt-crit-cell { border-top: 1px solid var(--border); padding: 14px 0 0; }
.pt-crit-k { font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.pt-crit-cell p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5;
  color: var(--text-secondary); }

/* ---- stepper (in the same section as criteria) ---- */
.pt-steps-label { margin-top: 64px; }
.pt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  margin-top: 26px; }
.pt-step { position: relative; }
.pt-step-num { width: 46px; height: 46px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-family: var(--font-mono);
  font-size: 16px; font-weight: 700; color: var(--text-on-accent);
  background: var(--gradient-brand); box-shadow: var(--glow-sm);
  position: relative; z-index: 1; }
.pt-step::before { content: ""; position: absolute; top: 23px; left: 58px;
  right: -36px; height: 1px;
  background: linear-gradient(90deg, var(--border-accent), var(--border-subtle)); }
.pt-step:last-child::before { display: none; }
.pt-step h3 { margin: 16px 0 8px; font-size: 16px; font-weight: 600;
  color: var(--text-primary); }
.pt-step p { margin: 0; font-size: 13.5px; line-height: 1.6;
  color: var(--text-secondary); }

/* ---- coach (two-col; chip is the artifact) ---- */
.pt-coach-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px;
  align-items: center; }

/* ---- what this is not (open list) ---- */
.pt-not ul { margin: 40px 0 0; padding: 0; list-style: none; display: grid;
  grid-template-columns: 1fr 1fr; gap: 20px 44px; }
.pt-not li { position: relative; padding-left: 30px; font-size: 14px;
  line-height: 1.6; color: var(--text-secondary); }
.pt-not li b { color: var(--text-primary); font-weight: 600; }
.pt-not li::before { content: "\2715"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--down-soft);
  color: var(--down); font-size: 10px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; }

/* ---- faq ---- */
.pt-faq { max-width: 720px; }
.pt-faq details { border-top: 1px solid var(--border-subtle); }
.pt-faq details:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.pt-faq .pt-faq-list { margin-top: 36px; }
.pt-faq summary { cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 14px;
  padding: 17px 4px; font-size: 15px; font-weight: 600;
  color: var(--text-primary); }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: "+"; font-family: var(--font-mono);
  font-size: 16px; color: var(--accent); flex: none; }
.pt-faq details[open] summary::after { content: "\2212"; }
.pt-faq .pt-a { padding: 0 4px 18px; font-size: 13.5px; line-height: 1.6;
  color: var(--text-secondary); max-width: 620px; }

/* ---- final closer (clone of the home page's .final) ---- */
.pt-final { position: relative; isolation: isolate; text-align: center;
  padding: 130px 0 120px; }
.pt-final::before { content: ""; position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%); width: 100vw; z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 50% 100%, rgba(46, 224, 138, 0.13), transparent 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.06); }
.pt-final h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.08; margin: 14px 0 18px;
  color: var(--text-primary); text-wrap: balance; }
.pt-final p { color: var(--text-secondary); font-size: 17px; line-height: 1.65;
  max-width: 560px; margin: 0 auto 36px; }
.pt-final-note { font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); margin-top: 22px; letter-spacing: 0.5px;
  text-transform: uppercase; }

/* ---- app pages: one centered column at any viewport width ---- */
.pt-col { max-width: 680px; margin: 0 auto; }

/* ---- survey ---- */
.pt-form-card { background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl);
  padding: 28px; }
.pt-field { margin-bottom: 26px; }
.pt-field:last-child { margin-bottom: 0; }
.pt-field-label { display: block; font-size: 14px; font-weight: 600;
  margin-bottom: 4px; color: var(--text-primary); }
.pt-field-help { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px;
  line-height: 1.5; }
.pt-input { width: 100%; background: var(--surface-well); border: 1px solid var(--border);
  border-radius: var(--radius-md); height: 42px; padding: 0 14px;
  color: var(--text-primary); font-family: var(--font-mono); font-size: 13.5px; }
.pt-input:focus { outline: none; border-color: var(--border-accent);
  box-shadow: var(--focus-shadow); }
.pt-select { width: 100%; background: var(--surface-well); border: 1px solid var(--border);
  border-radius: var(--radius-md); height: 42px; padding: 0 14px;
  color: var(--text-primary); font-size: 13.5px; appearance: auto; }
.pt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* Selected state is driven by an .is-checked class from JS, NOT by :has().
   Safari has repaint bugs with :has() on a container: the DOM stays intact
   but everything below the changed element fails to repaint, which reads as
   the page cropping or shrinking on tap. position: relative keeps the
   visually-hidden input anchored to its own chip so focus can't scroll the
   page somewhere else. */
.pt-chip { position: relative; background: var(--surface-well);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 9px 14px; font-size: 13px; color: var(--text-secondary);
  cursor: pointer; user-select: none; }
.pt-chip input { position: absolute; width: 1px; height: 1px; margin: 0;
  opacity: 0; pointer-events: none; }
/* No font-weight change on selection: bold text widens the chip, which
   re-wraps the row and jumps the layout. Fill + border carry the state. */
.pt-chip.is-checked { background: var(--accent-tint);
  border-color: var(--border-accent); color: var(--text-primary); }
.pt-chip small { display: block; font-size: 11px; color: var(--text-muted);
  font-weight: 400; margin-top: 2px; }
.pt-levels { display: flex; flex-direction: column; gap: 8px; }
.pt-level { position: relative; display: flex; align-items: flex-start;
  gap: 12px; background: var(--surface-well); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 14px; cursor: pointer; }
.pt-level input { position: absolute; width: 1px; height: 1px; margin: 0;
  opacity: 0; pointer-events: none; }
.pt-level.is-checked { background: var(--accent-tint);
  border-color: var(--border-accent); }
.pt-radio { width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--slate-600); flex: none; margin-top: 1px; }
.pt-level.is-checked .pt-radio { border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 40%, transparent 46%); }
.pt-level-t { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.pt-level-d { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pt-ta { width: 100%; background: var(--surface-well); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  min-height: 110px; resize: vertical; }
.pt-ta:focus { outline: none; border-color: var(--border-accent); }
.pt-count { text-align: right; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); margin-top: 6px; }
.pt-form-foot { display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; margin-top: 28px; }
.pt-form-note { font-size: 12.5px; color: var(--text-muted); }
.pt-err { color: var(--down); font-size: 12.5px; margin: 6px 0 0; }

.pt-commit-label { font-family: var(--font-mono); font-size: 9.5px;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin: 10px 0 6px; }
.pt-commit-label:first-of-type { margin-top: 0; }
.pt-chips-dim { opacity: 0.35; pointer-events: none; }

/* ---- queued ---- */
.pt-next { background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.pt-next-row { display: flex; gap: 14px; padding: 15px 18px;
  border-top: 1px solid var(--border-subtle); }
.pt-next-row:first-child { border-top: none; }
.pt-next-k { font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.1em; padding-top: 2px; flex: none; width: 20px; }
.pt-next-t { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.pt-next-t b { color: var(--text-primary); font-weight: 600; }
.pt-invite { margin-top: 22px; background: var(--surface-card);
  border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 0 0 1px rgba(46, 224, 138, 0.06), 0 10px 30px rgba(0, 0, 0, 0.3); }
.pt-invite h2 { margin: 10px 0 8px; font-size: 16px; font-weight: 600;
  color: var(--text-primary); }
.pt-invite p { margin: 0 0 14px; font-size: 13px; line-height: 1.55;
  color: var(--text-secondary); max-width: 520px; }
.pt-invite-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pt-invite-url { flex: 1; min-width: 240px; max-width: 340px; display: flex;
  align-items: center; height: 40px; padding: 0 14px; background: var(--surface-well);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-primary);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* House amber framing (matches .ew-busted-col.is-them): dark fill, amber
   outline, amber only on the accent text. Never a tinted amber fill. */
.pt-ladder { margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-well);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  font-size: 13px; line-height: 1.55; color: var(--amber-tint-text); }
.pt-ladder b { color: var(--warn); }

/* ---- group ---- */
.pt-why { background: var(--surface-well);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 18px; }
.pt-why p { margin: 8px 0 0; font-size: 14px; line-height: 1.6;
  color: var(--text-secondary); }
.pt-members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 18px 0; }
.pt-member { display: flex; gap: 12px; align-items: center;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 14px 16px; }
.pt-member.you { border-color: var(--border-accent); }
.pt-avatar { width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: var(--gradient-brand); color: var(--text-on-accent);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none; }
.pt-m-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.pt-m-name .dim { color: var(--text-muted); font-weight: 400; }
.pt-m-handle { font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-muted); margin-top: 2px; letter-spacing: 0.04em; }
.pt-m-tags { margin-left: auto; display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end; }
.pt-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 2px 8px; }
.pt-tag.lvl { color: var(--green-400); border-color: var(--border-accent);
  background: var(--accent-tint); }
.pt-tag.coach { color: var(--text-on-accent); background: var(--gradient-brand);
  border: none; font-weight: 700; }
.pt-coach { display: flex; gap: 14px; align-items: center;
  background: linear-gradient(90deg, rgba(46, 224, 138, 0.08), rgba(46, 224, 138, 0.02));
  border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
  padding: 14px 18px; margin-bottom: 18px; }
.pt-coach-blurb { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5;
  margin-top: 2px; }
.pt-rhythm { display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
  background: var(--surface-well); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 11px 16px; margin-bottom: 10px; }
.pt-rhythm b { color: var(--text-primary); }
.pt-privacy { font-size: 12px; color: var(--text-muted);
  margin: 0 0 24px; }

/* ---- responsive ---- */
/* Comparison table: on phones the two-column grid forced a horizontal
   scroll, so visitors only ever saw the ✗ column. Stack each row instead:
   label, then the ✗ line, then the ✓ line directly under it. */
@media (max-width: 700px) {
  .pt-cmp-wrap { overflow-x: visible; }
  /* On phones the table stops being a boxed artifact and becomes the same
     open editorial list as the pain/criteria sections: label, muted X line,
     strong check line, hairlines between criteria only. */
  .pt-cmp { min-width: 0; background: transparent; border: none;
    border-radius: 0; overflow: visible; }
  .pt-cmp-h { display: none; }
  .pt-cmp-row { grid-template-columns: 1fr; padding: 20px 0; }
  .pt-cmp-row + .pt-cmp-row { border-top: 1px solid var(--border); }
  /* Selectors must out-rank the desktop `.pt-cmp-row > div` padding rule,
     or these paddings silently lose the cascade and the rows collapse. */
  .pt-cmp-row > .pt-cmp-f { padding: 0 0 14px; }
  .pt-cmp-row > .pt-cmp-old { padding: 0 0 10px; color: var(--text-muted); }
  .pt-cmp-row > .pt-cmp-new { background: none; border-left: none; padding: 0;
    color: var(--text-primary); font-weight: 500; }
}

@media (max-width: 860px) {
  .pt-section { padding: 72px 0; }
  .pt-hero { padding: 40px 0 72px; }
  .pt-final { padding: 96px 0 88px; }
  .pt-pain-grid, .pt-example, .pt-coach-band, .pt-members,
  .pt-not ul { grid-template-columns: 1fr; }
  .pt-crit-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-steps { grid-template-columns: 1fr; gap: 26px; }
  .pt-step { padding-left: 62px; }
  .pt-step-num { position: absolute; left: 0; top: 0; }
  .pt-step::before { top: 46px; left: 23px; right: auto; bottom: -26px;
    width: 1px; height: auto;
    background: linear-gradient(180deg, var(--border-accent), var(--border-subtle)); }
  .pt-step h3 { margin-top: 2px; }
}

