/* =============================================================
   AFOMO — Partners page  |  partners.css
   Loaded AFTER home-v2.css (shares tokens, header, buttons).
   Scoped with the `pt-` prefix: it cannot change the homepage
   or the Financial Identity page.
   Reference: 1440px viewport, 1200px container.
   ============================================================= */

.pt-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =============================================================
   HERO
   ============================================================= */
.pt-hero {
  background: linear-gradient(125deg, #efe6ff 0%, #f8f3ff 38%, #fff9ef 78%, #fff3d9 100%);
  padding: 72px 0 80px; overflow-x: clip;
}
.pt-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 551px; align-items: center; column-gap: 40px; }
.pt-hero h1 { margin-top: 16px; font-size: 64px; line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; color: var(--af-ink); }
.pt-hero h1 em { font-style: normal; background: linear-gradient(90deg, #6d28d9 0%, #8b2fe0 60%, #a22bd6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--af-purple); }
.pt-hero-lead { margin-top: 18px; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--af-ink-soft); }
.pt-hero .af-btn { margin-top: 24px; }

.pt-visual { position: relative; width: 551px; aspect-ratio: 3 / 2; }
.pt-ring { position: absolute; z-index: 0; width: 449px; aspect-ratio: 1; left: 151px; top: -30px; border-radius: 50%; border: 20px solid transparent; background: linear-gradient(135deg, #dccff6, #c5b2f1) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .85; }
.pt-frame { position: absolute; inset: 0; z-index: 1; padding: 7px; border-radius: 31px; background: #fff; box-shadow: 0 34px 60px -30px rgba(80, 40, 160, .4); }
.pt-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; }

/* benefits bar */
.pt-benefits { margin-top: 41px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 36px 22px 28px; background: #fff; border: 1px solid #efe9fb; border-radius: 31px; box-shadow: 0 26px 54px -30px rgba(80, 40, 160, .3); }
.pt-benefit { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pt-benefit .pt-ico { width: 42px; height: 42px; color: var(--af-purple); --ic2: #f59e0b; stroke-width: 1.7; }
.pt-benefit.gold .pt-ico { color: #f59e0b; --ic2: #f59e0b; }
.pt-benefit b { font-size: 17.3px; font-weight: 800; letter-spacing: -0.01em; color: var(--af-ink); }

/* =============================================================
   WHO WE PARTNER WITH
   ============================================================= */
.pt-who { padding: 84px 0 0; }
.pt-h2 { font-size: 41px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--af-ink); }
.pt-sub { margin-top: 14px; max-width: 670px; font-size: 18px; line-height: 1.65; color: var(--af-ink-soft); }
.pt-cards { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pt-pcard { background: #fff; border: 1px solid var(--af-line); border-top: 4px solid var(--c); border-radius: 25px; padding: 26px 26px 28px; box-shadow: var(--af-sh-card); transition: transform .22s ease, box-shadow .22s ease; }
.pt-pcard:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(80, 40, 160, .3); }
.pt-tile { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; background: var(--af-lav-2); color: var(--af-purple); --ic2: var(--af-purple); }
.pt-tile.y { background: #fff0c6; color: #e08a00; --ic2: #e08a00; }
.pt-pcard h3 { margin-top: 22px; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--af-ink); }
.pt-pcard p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--af-muted); }

/* =============================================================
   CONTACT SECTION
   ============================================================= */
.pt-contact { padding: 86px 0 0; }
.pt-contact-grid:focus { outline: none; }
.pt-contact-grid { display: grid; grid-template-columns: 384px minmax(0, 1fr); column-gap: 48px; align-items: start; }
.pt-msg-tile { width: 76px; height: 76px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; color: var(--af-purple); --ic2: #f59e0b; background: linear-gradient(145deg, #f3ecff, #e3d8fb); }
.pt-contact h2 { margin-top: 24px; font-size: 39px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; color: var(--af-ink); }
.pt-contact-copy p { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--af-ink-soft); }
.pt-mailbox { margin-top: 22px; display: flex; align-items: center; gap: 12px; min-height: 65px; padding: 14px 20px; border-radius: 17px; background: linear-gradient(95deg, #f4eafb 0%, #fbeee9 55%, #fff0cb 100%); font-size: 15px; color: var(--af-ink-soft); }
.pt-mailbox .pt-ico { width: 22px; height: 22px; color: var(--af-purple); }
.pt-mailbox a { font-weight: 800; color: var(--af-purple); text-decoration: underline; text-underline-offset: 3px; }
.pt-mailbox a:hover { color: var(--af-purple-deep); }

/* form card */
.pt-form-card { position: relative; padding: 36px 41px 40px; background: #fff; border: 1px solid #ece5f8; border-radius: 31px; box-shadow: 0 30px 60px -36px rgba(80, 40, 160, .35); }
.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.pt-field { margin-bottom: 20px; }
.pt-field > label, .pt-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--af-ink); }
.pt-req { color: #dc2626; margin-left: 2px; }
.pt-opt { font-weight: 500; color: #5b5b76; }
.pt-input, .pt-select, .pt-textarea {
  display: block; width: 100%; height: 52px; padding: 0 17px; font: inherit; font-size: 15px; color: var(--af-ink);
  background: #fff; border: 1px solid #d8d0ea; border-radius: 11px; transition: border-color .18s, box-shadow .18s;
}
.pt-input::placeholder, .pt-textarea::placeholder { color: #7a7690; opacity: 1; }
.pt-select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 17px center; }
.pt-select:invalid { color: #7a7690; }
.pt-select option { color: var(--af-ink); }
.pt-textarea { height: 174px; padding: 14px 17px; line-height: 1.55; resize: vertical; min-height: 120px; }
.pt-input:hover, .pt-select:hover, .pt-textarea:hover { border-color: #b9a9e0; }
.pt-input:focus, .pt-select:focus, .pt-textarea:focus { outline: none; border-color: var(--af-purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
[aria-invalid="true"] { border-color: #dc2626 !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14) !important; }
.pt-err { display: none; margin-top: 7px; font-size: 13px; line-height: 1.4; font-weight: 600; color: #b91c1c; }
.pt-err.show { display: block; }
.pt-count { margin-top: 7px; text-align: right; font-size: 12.5px; color: #5b5b76; font-variant-numeric: tabular-nums; }
.pt-count.warn { color: #b45309; font-weight: 700; }
.pt-field-msg .pt-count-row { display: flex; justify-content: space-between; gap: 12px; }

.pt-consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.pt-consent input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid #9a95b0; border-radius: 5px; background: #fff; cursor: pointer; display: inline-grid; place-content: center; transition: background .15s, border-color .15s, box-shadow .15s; }
.pt-consent input::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .12s; }
.pt-consent input:checked { background: var(--af-purple); border-color: var(--af-purple); }
.pt-consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.pt-consent input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(124, 58, 237, .25); }
.pt-consent label { margin: 0; font-size: 14.5px; font-weight: 400; line-height: 1.5; color: var(--af-ink-soft); cursor: pointer; }
.pt-consent a { color: var(--af-purple); text-decoration: underline; text-underline-offset: 2px; }
.pt-consent a:hover { color: var(--af-purple-deep); }

.pt-submit { width: 100%; }
.pt-submit .pt-ico { width: 17px; height: 17px; stroke-width: 2.2; }
.pt-submit[disabled] { cursor: progress; opacity: .8; transform: none; box-shadow: none; }
.pt-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(26, 17, 71, .25); border-top-color: var(--af-ink); animation: pt-spin .8s linear infinite; }
.pt-submit[aria-busy="true"] .pt-spin { display: inline-block; }
.pt-submit[aria-busy="true"] .pt-ico { display: none; }
@keyframes pt-spin { to { transform: rotate(360deg); } }

.pt-alert { margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; font-weight: 600; display: none; }
.pt-alert.show { display: block; }
.pt-alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.pt-alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pt-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pt-success { display: none; text-align: center; padding: 28px 12px 20px; }
.pt-success.show { display: block; }
.pt-success:focus { outline: none; }
.pt-success .pt-okdot { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.pt-success .pt-okdot .pt-ico { stroke-width: 3; }
.pt-success h3 { margin-top: 22px; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: var(--af-ink); }
.pt-success p { margin: 12px auto 0; max-width: 420px; font-size: 16px; line-height: 1.65; color: var(--af-ink-soft); }
.pt-ref { display: inline-block; margin-top: 16px; padding: 8px 16px; border-radius: 999px; background: var(--af-lav-2); color: var(--af-purple-deep); font-size: 13.5px; font-weight: 800; letter-spacing: .02em; }
.pt-success .af-btn { margin-top: 24px; height: 50px; }

/* =============================================================
   COMPACT FOOTER (page-scoped variant)
   ============================================================= */

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1180px) {
  .pt-hero h1 { font-size: 60px; }
  .pt-hero-grid { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 32px; }
  .pt-visual { width: 440px; }
  .pt-ring { width: 360px; left: 120px; top: -24px; }
  .pt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-contact-grid { grid-template-columns: 320px minmax(0, 1fr); column-gap: 36px; }
}

@media (max-width: 960px) {
  .pt-hero { padding: 56px 0 64px; }
  .pt-hero-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .pt-hero h1 { font-size: 56px; }
  .pt-visual { width: min(551px, 100%); }
  .pt-ring { width: 82%; left: 18%; top: -8%; }
  .pt-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; padding: 32px 22px; }
  .pt-who { padding-top: 64px; }
  .pt-h2 { font-size: 36px; }
  .pt-contact { padding-top: 72px; }
  .pt-contact-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .pt-contact-copy { max-width: 560px; }
  .pt-contact h2 { font-size: 34px; }
}

@media (max-width: 640px) {
  .pt-hero h1 { font-size: 42px; }
  .pt-hero-lead { font-size: 16.5px; }
  .pt-hero .af-btn { width: 100%; padding: 0 20px; }
  .pt-visual { width: calc(100% - 14px); }
  .pt-frame { border-radius: 24px; padding: 5px; }
  .pt-frame img { border-radius: 19px; }
  .pt-ring { border-width: 14px; }
  .pt-benefits { border-radius: 24px; padding: 26px 14px; row-gap: 28px; }
  .pt-benefit .pt-ico { width: 38px; height: 38px; }
  .pt-benefit b { font-size: 15px; }
  .pt-h2 { font-size: 30px; }
  .pt-sub { font-size: 16.5px; }
  .pt-cards { grid-template-columns: 1fr; }
  .pt-contact h2 { font-size: 30px; }
  .pt-msg-tile { width: 64px; height: 64px; font-size: 28px; }
  .pt-form-card { padding: 28px 20px 30px; border-radius: 24px; }
  .pt-row { grid-template-columns: 1fr; }
  .pt-mailbox { align-items: flex-start; padding: 16px; font-size: 15px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-spin { animation-duration: 2s !important; }
}
