/* Anticode Partners pages (/affiliates…). The same shell and tokens as /pricing and /status (status.css):
   ruled sections, plain type, the brand blue only as an accent. */
.pt-page [hidden] { display: none !important; }
.pt-page { padding-top: var(--s-7); padding-bottom: var(--s-8); }
.pt-kicker { margin: 0 0 var(--s-4); font-size: 13px; font-weight: 500; color: var(--pen); }
.pt-hero { max-width: 820px; padding: clamp(24px, 6vh, 72px) 0 var(--s-7); }
.pt-hero h1, .pt-narrow h1, .pt-head h1 { margin: 0; font-size: clamp(38px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; color: var(--text); text-wrap: balance; }
.pt-head h1, .pt-narrow h1 { font-size: clamp(32px, 4vw, 48px); }
.pt-lede { margin: var(--s-5) 0 0; max-width: 56ch; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--body); }
.pt-ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }

.pt-sec { padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.pt-sec h2 { margin: 0 0 var(--s-5); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.pt-sec h3 { margin: var(--s-6) 0 var(--s-3); font-size: 15px; font-weight: 600; color: var(--text); }
.pt-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-4) var(--s-7); }
.pt-split h2 { margin: 0; }
@media (max-width: 760px) { .pt-split { grid-template-columns: minmax(0, 1fr); } }
.pt-prose p { margin: 0; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--body); }
.pt-prose p + p { margin-top: var(--s-4); }

.pt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.pt-steps li { counter-increment: s; padding: 0 var(--s-5) 0 0; }
.pt-steps li + li { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.pt-steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: var(--s-3); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pt-steps b { display: block; font-size: 18px; font-weight: 500; color: var(--text); }
.pt-steps p { margin: var(--s-2) 0 0; font-size: 15px; line-height: 1.55; color: var(--body); }
@media (max-width: 760px) { .pt-steps { grid-template-columns: 1fr; gap: var(--s-5); } .pt-steps li + li { padding-left: 0; border-left: 0; } }

.pt-list { margin: 0; padding: 0; list-style: none; }
.pt-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pt-list li:first-child { padding-top: 0; }
.pt-list b { font-size: 16px; font-weight: 500; color: var(--text); }
.pt-list span { font-size: 15px; color: var(--body); }

.pt-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: end; max-width: 900px; }
@media (max-width: 760px) { .pt-calc { grid-template-columns: 1fr; } }
.pt-calc input[type="range"] { width: 100%; accent-color: var(--pen); }
.pt-calc-out { display: grid; gap: 2px; margin: 0; }
.pt-calc-out span, .pt-calc-out small { font-size: 13px; color: var(--muted); }
.pt-calc-out b { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pt-note { margin: var(--s-4) 0 0; max-width: 70ch; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.pt-note a, .pt-prose a, .pt-faq a, .pt-check a, .pt-state a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }

.pt-faq { max-width: 760px; }
.pt-faq details { border-bottom: 1px solid var(--line); }
.pt-faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; color: var(--text); }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: "+"; color: var(--muted); }
.pt-faq details[open] summary::after { content: "–"; }
.pt-faq summary:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.pt-faq p { margin: 0 0 16px; max-width: 64ch; font-size: 15px; line-height: 1.6; color: var(--body); }
.pt-end { display: grid; justify-items: start; gap: var(--s-3); }
.pt-end h2 { margin: 0; }
.pt-end > p:not(.pt-note) { margin: 0; color: var(--body); }

/* forms */
.pt-narrow { max-width: 720px; }
.pt-form { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.pt-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 560px) { .pt-row { grid-template-columns: 1fr; } }
.pt-field { display: grid; gap: 6px; min-width: 0; }
.pt-field label { font-size: 14px; font-weight: 500; color: var(--text); }
.pt-field small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.pt-opt { font-weight: 400; color: var(--muted); }
.pt-field input:not([type="range"]), .pt-field select, .pt-field textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.pt-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.pt-field input[readonly] { color: var(--muted); }
.pt-field input:focus-visible, .pt-field select:focus-visible, .pt-field textarea:focus-visible { outline: 2px solid var(--pen); outline-offset: 1px; }
.pt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.pt-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pen); }
.pt-err { margin: 0; font-size: 14px; color: var(--danger); }
.pt-form .btn { justify-self: start; }
.pt-state { margin-top: var(--s-6); }
.pt-state > p { margin: 0 0 var(--s-3); font-size: 16px; color: var(--body); }
.pt-muted { color: var(--muted); font-size: 14px; }

/* dashboard */
.pt-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.pt-range { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pt-range button { min-height: 36px; padding: 0 12px; border-radius: var(--r-control); font-size: 13.5px; color: var(--muted); }
.pt-range button[aria-pressed="true"] { color: var(--text); background: var(--raised); }
.pt-range button:focus-visible { outline: 2px solid var(--pen); outline-offset: 1px; }
.pt-linkbox { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.pt-linkbox h2 { margin: 0 0 var(--s-3); font-size: 15px; font-weight: 600; color: var(--text); }
.pt-link { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.pt-link code { padding: 10px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 15px var(--mono); color: var(--text); overflow-wrap: anywhere; user-select: all; }
.pt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--s-2); border-top: 1px solid var(--line); }
.pt-stats div { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.pt-stats dt { font-size: 13px; color: var(--muted); }
.pt-stats dd { margin: 6px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-chart svg { display: block; width: 100%; height: auto; max-height: 220px; }
.pt-chart rect { fill: var(--pen); }
.pt-chart .pt-axis { stroke: var(--line-2); }
.pt-chart text { fill: var(--muted); font-size: 18px; font-family: var(--font); }
.pt-table-wrap { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { padding: 8px 12px 8px 0; text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pt-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--body); white-space: nowrap; }
.pt-table .num { font-variant-numeric: tabular-nums; color: var(--text); }
.pt-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--body); }
.pt-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.pt-pill[data-s="approved"]::before, .pt-pill[data-s="paid"]::before { background: var(--ok); }
.pt-pill[data-s="pending"]::before, .pt-pill[data-s="initiated"]::before { background: var(--warn); }
.pt-pill[data-s="reversed"]::before, .pt-pill[data-s="rejected"]::before, .pt-pill[data-s="failed"]::before, .pt-pill[data-s="suspended"]::before { background: var(--danger); }
.pt-settings { max-width: 520px; margin-top: 0; }

/* admin */
.pt-rows { margin: var(--s-4) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pt-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.pt-who { display: grid; gap: 4px; min-width: 0; flex: 1 1 420px; font-size: 14px; color: var(--body); }
.pt-who b { font-size: 16px; font-weight: 500; color: var(--text); }
.pt-who p { margin: 4px 0; max-width: 72ch; line-height: 1.5; }
.pt-who code { font: 13px var(--mono); color: var(--text); }
.pt-flag { color: var(--warn); font-weight: 500; }
.pt-acts { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; }
.pt-log { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--body); }
.pt-log li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pt-log time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }
