/* page/partners.css — page-scoped styling for partners.html only.
   Composes tokens + classes from components/styles.css and home/home-flagship.css
   (R-04/R-05). Loads LAST.

   This page is deliberately built out of the PRICING page's construction —
   .pt-card mirrors .plan-card, .pt-split mirrors .pr-split, .pt-qa mirrors
   .pr-qa, .pt-form mirrors .ct-form — because an agency reads /pricing and
   /partners in the same sitting and the two have to read as one system. Those
   are page-scoped COPIES, not imports: every page/<name>.css in this tree is
   self-contained, so no other page's stylesheet is edited to make this one
   work, and no shared component is touched (R-04).

   Per R-02 the gradient appears nowhere here. Primary actions are solid black
   .btn--dark, exactly as on /pricing. */

/* Screen-reader-only utility — used by the commercials <caption>, which names
   the table for assistive tech without adding a second visible heading under
   the one the section already has. No shared file defines this. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------- Masthead (PT-01) ----------------
   Same construction as .pr-mast so /pricing and /partners open identically. */
.pt-mast { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(32px, 5vw, 56px); }
.pt-mast__inner { max-width: var(--content); text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pt-mast .kicker { justify-content: center; }
.pt-mast__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.08; color: var(--primary);
  margin: 10px 0 18px; text-wrap: balance;
}
.pt-mast__sub { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; color: var(--text); max-width: 62ch; margin: 0 auto; }
.pt-mast__cta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pt-mast__fine { font-size: 13.5px; line-height: 1.55; color: var(--text); margin: 18px 0 0; }

/* ---------------- Three partner types (PT-02) ----------------
   .plan-card's construction, minus the featured treatment: the three routes
   are parallel, so none is promoted. Equal-height flex columns with the CTA
   pinned to the bottom, so the three buttons sit on one baseline however much
   copy each card carries. */
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pt-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-frame, 18px);
  padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; text-align: left;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.04);
  transition: transform 0.3s var(--ease-out, ease), box-shadow 0.3s var(--ease-out, ease), border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pt-card:hover { transform: translateY(-5px); border-color: #0b0b0b; box-shadow: 0 20px 40px -20px rgba(11, 11, 11, 0.22); }
  .pt-card:hover .pt-card__icon { transform: translateY(-2px) scale(1.06); }
}
.pt-card__icon {
  width: 44px; height: 44px; border-radius: var(--r-card); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2, #f4f1f3); color: var(--primary); margin-bottom: 18px;
  transition: transform 0.3s var(--ease-out, ease);
}
.pt-card__icon svg { width: 21px; height: 21px; }
.pt-card__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--primary); margin: 4px 0 8px; }
/* who it is for — the line that tells a reader whether this card is theirs,
   so it keeps full body weight rather than dropping to a caption */
.pt-card__who { font-size: 14.5px; line-height: 1.55; color: var(--primary); margin: 0 0 10px; }
/* the value line, quieter, and it takes the column's slack so every CTA lands
   on one baseline */
.pt-card__body { font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0 0 24px; }
.pt-card__cta { margin-top: auto; width: 100%; }

@media (max-width: 900px) { .pt-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .pt-card, .pt-card__icon { transition: none; }
}

/* ---------------- Split prose sections (PT-03, PT-04, PT-05) ----------------
   Head left, body right, off two shared baselines — the pricing page's
   .pr-split, so the two pages' prose sections have the same skeleton. */
.pt-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
/* min-width:0 on both columns, not just the desktop minmax(0, …) track: at
   =<860px the grid collapses to `1fr`, which is minmax(AUTO, 1fr), so a child
   with a wide min-content — the commercials table — would stretch its column
   past the viewport and take the whole page with it instead of scrolling
   inside its own frame. */
.pt-split__head, .pt-split__body { min-width: 0; }
.pt-split__head { max-width: 34ch; }
.pt-split__head .sec-title { font-size: clamp(23px, 2.5vw, 31px); }
.pt-split__body > :first-child { margin-top: 0; }
.pt-split__body > :last-child { margin-bottom: 0; }
/* The agency case is the page's argument, not a supporting note — it gets a
   larger title and larger body than its sibling split sections. */
.pt-split--lead .pt-split__head .sec-title { font-size: clamp(27px, 3.2vw, 39px); }

.pt-case__p { font-size: clamp(15.5px, 1.6vw, 17px); line-height: 1.7; color: var(--text); margin: 0 0 20px; max-width: 62ch; }
.pt-case__p:last-child { margin-bottom: 0; }
/* the three figures are the only bolded words on the page — they are what an
   agency scans this section for */
.pt-case__p strong { font-weight: 700; color: var(--primary); }

@media (max-width: 860px) {
  .pt-split { grid-template-columns: 1fr; gap: 20px; }
  .pt-split__head { max-width: none; }
}

/* ---------------- What partners get (PT-04) ----------------
   Quiet list, no icons, as directed: ruled rows and nothing else. After the
   argument above it is the page's exhale (R-19), so it resists any urge to
   grow ticks, plates or a second card grid (R-13). */
.pt-gets { list-style: none; margin: 0; padding: 0; }
.pt-gets li {
  font-size: 15.5px; line-height: 1.6; color: var(--primary);
  padding: 15px 0; border-top: 1px solid var(--line); max-width: 58ch;
}
.pt-gets li:first-child { border-top: 0; padding-top: 0; }
.pt-gets li:last-child { padding-bottom: 0; }
/* the one qualifier the copy carries, set back so it reads as a condition on
   the item rather than part of the claim */
.pt-gets__q { color: var(--text); }

/* ---------------- Commercials (PT-05) ----------------
   A real table, framed as one surface so it does not read as a bare
   spreadsheet dropped into the page. Every cell is plain text — no colour
   carries meaning here (R-07). */
.pt-terms__frame {
  border: 1px solid var(--line); border-radius: var(--r-frame, 18px);
  background: var(--white); overflow-x: auto;
}
.pt-terms { width: 100%; border-collapse: collapse; text-align: left; min-width: 460px; }
.pt-terms thead th {
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.02em; color: var(--text);
  padding: 15px clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--line);
  background: var(--surface-2, #fafafa); white-space: nowrap;
}
.pt-terms thead th:first-child { border-top-left-radius: var(--r-frame, 18px); }
.pt-terms thead th:last-child { border-top-right-radius: var(--r-frame, 18px); }
.pt-terms tbody th,
.pt-terms tbody td {
  padding: 17px clamp(14px, 2vw, 22px); border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.5; color: var(--text); vertical-align: baseline;
}
.pt-terms tbody tr:first-child th,
.pt-terms tbody tr:first-child td { border-top: 0; }
.pt-terms tbody th {
  font-family: var(--font-display); font-weight: 700; color: var(--primary); white-space: nowrap;
}
/* the number is what the reader came for */
.pt-terms__earn { font-weight: 600; color: var(--primary); }

/* On a phone the table reflows rather than becoming a scrollport — same call
   the pricing matrix makes at its own breakpoint. Three short columns wrap
   perfectly well at 360px, and a nested horizontal scroll hides exactly the
   column ("what you earn") the reader came for. overflow-x:auto stays on the
   frame above this width as the safety net it is. */
@media (max-width: 560px) {
  .pt-terms { min-width: 0; }
  .pt-terms thead th,
  .pt-terms tbody th { white-space: normal; }
  .pt-terms thead th { padding: 13px 12px; }
  .pt-terms tbody th,
  .pt-terms tbody td { padding: 14px 12px; font-size: 14px; }
}

/* ---------------- How it works (PT-06) ----------------
   Composes home-flagship.css's .steps / .step / .step__num / .step__title /
   .step__body. The ONLY thing overridden is the column count — .steps ships
   as a 3-column grid and this sequence has four steps (R-04). */
.pt-steps { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .pt-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pt-steps { grid-template-columns: 1fr; } }

/* ---------------- Partner proof (PT-07) ----------------
   One quote, no carousel — a single-slide carousel is furniture pretending to
   be content. Sized and rung like home-flagship.css's .quote__card so it
   belongs to the same family.
   The avatar is an initials monogram while the real profile photo is still
   being requested; the slot is the site's usual 50px black-ringed disc, so
   swapping an <img> in later moves nothing. */
.pt-quote {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r-frame, 18px);
  background: var(--white); padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.04);
}
.pt-quote__text { margin: 0 0 28px; }
.pt-quote__text p {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(18px, 2.2vw, 23px); line-height: 1.5; color: var(--primary);
  margin: 0; text-wrap: pretty;
}
.pt-quote__who { display: flex; align-items: center; gap: 14px; }
.pt-quote__av {
  width: 50px; height: 50px; border-radius: 50%; flex: none; padding: 2.5px;
  background: #0b0b0b; display: inline-flex;
}
/* The real portrait — identical treatment to home-flagship.css's .quote__av img
   (the black ring with a white keyline inside it), so a partner quote and a
   customer quote wear the same badge. */
.pt-quote__av img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--white); display: block;
}
/* Initials fallback, used only while a real photo is outstanding. Same slot,
   same 50px ring, so swapping the <img> in moves nothing. */
.pt-quote__av > span {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: var(--white); border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  letter-spacing: 0.01em; color: var(--primary);
}
.pt-quote__name { display: block; font-weight: 700; font-size: 16px; color: var(--primary); }
.pt-quote__role { display: block; font-size: 14px; color: var(--text); margin-top: 2px; }

/* ---------------- Partner FAQ (PT-08) ----------------
   The pricing page's .pr-qa mechanics under this page's own names: the
   grid-rows 0fr->1fr trick opens the panel without measuring anything, and
   open/closed is carried by the disc inking solid black AND by the plus
   becoming a minus — never by colour alone (R-07). */
.pt-qa { border-top: 1px solid var(--line); }
.pt-qa__row { border-bottom: 1px solid var(--line); }
/* home-flagship.css only ships data-d delays 1-4; these cover all eight rows,
   so the group that enters together cascades instead of landing at once. */
.pt-qa__row:nth-child(1) { transition-delay: 0ms; }
.pt-qa__row:nth-child(2) { transition-delay: 45ms; }
.pt-qa__row:nth-child(3) { transition-delay: 90ms; }
.pt-qa__row:nth-child(4) { transition-delay: 135ms; }
.pt-qa__row:nth-child(5) { transition-delay: 180ms; }
.pt-qa__row:nth-child(6) { transition-delay: 215ms; }
.pt-qa__row:nth-child(7) { transition-delay: 245ms; }
.pt-qa__row:nth-child(8) { transition-delay: 270ms; }

.pt-qa__q { margin: 0; font-weight: normal; }
.pt-qa__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border: 0; background: transparent; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.35;
  letter-spacing: -0.01em; color: var(--primary);
}
.pt-qa__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.pt-qa__icon {
  position: relative; width: 30px; height: 30px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white);
  transition: background-color 0.3s var(--ease-standard), border-color 0.3s var(--ease-standard),
              transform 0.3s var(--ease-out);
}
.pt-qa__icon::before, .pt-qa__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--primary);
  border-radius: 1px; transform: translate(-50%, -50%);
  transition: transform 0.36s var(--ease-out), opacity 0.22s var(--ease-standard),
              background-color 0.3s var(--ease-standard);
}
.pt-qa__icon::before { width: 12px; height: 1.6px; }
.pt-qa__icon::after { width: 1.6px; height: 12px; }
@media (hover: hover) and (pointer: fine) {
  .pt-qa__btn:hover .pt-qa__icon { border-color: var(--primary); transform: scale(1.06); }
}
.pt-qa__row.is-open .pt-qa__icon { background: #0b0b0b; border-color: #0b0b0b; }
.pt-qa__row.is-open .pt-qa__icon::before { background: var(--white); transform: translate(-50%, -50%) rotate(180deg); }
.pt-qa__row.is-open .pt-qa__icon::after { background: var(--white); transform: translate(-50%, -50%) rotate(180deg); opacity: 0; }

.pt-qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s var(--ease-out); }
.pt-qa__panel > div { overflow: hidden; }
.pt-qa__row.is-open .pt-qa__panel { grid-template-rows: 1fr; }
.pt-qa__a {
  font-size: 14.5px; line-height: 1.7; color: var(--text); margin: 0 0 20px; max-width: 62ch;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.24s var(--ease-standard), transform 0.34s var(--ease-out);
}
.pt-qa__row.is-open .pt-qa__a { opacity: 1; transform: none; transition-delay: 0.1s; }
.pt-qa__more { margin: 24px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.pt-qa__link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pt-qa__row { transition-delay: 0ms !important; }
  .pt-qa__icon, .pt-qa__icon::before, .pt-qa__icon::after, .pt-qa__panel { transition: none; }
  /* the answer still crossfades — it is the only cue that the panel changed */
  .pt-qa__a { transform: none; transition: opacity 0.15s linear; }
  .pt-qa__row.is-open .pt-qa__a { transition-delay: 0s; }
}

/* ---------------- Application form (PT-09) ----------------
   contact.html's .ct-form construction under this page's names. Framed as one
   panel because it closes the page and should read as a destination rather
   than a trailing block. */
.pt-apply {
  border: 1px solid var(--line); border-radius: var(--r-frame, 18px);
  background: var(--white); padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.04);
}
.pt-apply__head { margin-bottom: clamp(24px, 3vw, 32px); }
.pt-apply__head .sec-title { font-size: clamp(23px, 2.5vw, 31px); margin-bottom: 12px; }
.pt-apply__sub { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0; max-width: 58ch; }

.pt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.pt-field { display: flex; flex-direction: column; min-width: 0; }
.pt-field--full { grid-column: 1 / -1; }
.pt-field label { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.pt-field label span[aria-hidden] { color: var(--text); font-weight: 500; }
.pt-optional { font-weight: 500; color: var(--text); }
.pt-field input,
.pt-field select,
.pt-field textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--primary);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
/* placeholder must clear 4.5:1 on white like body text does (R-07) */
.pt-field input::placeholder,
.pt-field textarea::placeholder { color: #6b6b6b; }
.pt-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.pt-field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230b0b0b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.pt-field input:focus-visible,
.pt-field select:focus-visible,
.pt-field textarea:focus-visible {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 11, 11, 0.08);
}
.pt-field.is-invalid input,
.pt-field.is-invalid textarea { border-color: #b3261e; }
.pt-error { font-size: 12.5px; line-height: 1.45; color: #b3261e; margin: 6px 0 0; }

/* Netlify honeypot. Carries [hidden] in the markup; this makes the grid slot
   collapse regardless of any later rule that sets display on form children. */
.pt-hp, .pt-hp[hidden] { display: none; }

.pt-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.pt-note { font-size: 12.5px; line-height: 1.5; color: var(--text); margin: 0; max-width: 40ch; }
.pt-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.pt-status {
  grid-column: 1 / -1; margin: 4px 0 0; padding: 13px 16px;
  border-radius: var(--r-card); font-size: 14px; line-height: 1.55;
  border: 1px solid var(--line); background: var(--surface-2, #f7f5f6); color: var(--primary);
}
.pt-status a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pt-status.is-error { border-color: #b3261e; color: #b3261e; background: #fdf3f2; }

@media (max-width: 560px) {
  .pt-form { grid-template-columns: 1fr; }
  /* iOS Safari auto-zooms the page on focus for any field under 16px —
     bump just the mobile size so tapping into the form doesn't jump the zoom. */
  .pt-field input,
  .pt-field select,
  .pt-field textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-field input, .pt-field select, .pt-field textarea { transition: none; }
}
