/* ==========================================================================
   AIBIS Partner Network V1.1 — isolated page layer
   Loaded only on /partners/. Reuses theme.css + v25.css tokens.
   V1.1: tighter vertical rhythm, editorial audience cards, contact clarity.
   ========================================================================== */

.pn-page { background: var(--v25-ink); }

/* ---------- shared ---------- */
.pn-section { position: relative; padding: clamp(48px, 5.5vw, 80px) 0; }
.pn-section + .pn-section { border-top: 1px solid rgba(150, 184, 208, .09); }
.pn-kicker {
  margin: 0 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--v25-cyan-soft);
}
.pn-h2 {
  margin: 0; font-size: clamp(1.8rem, 3.1vw, 2.6rem); line-height: 1.07;
  letter-spacing: -.038em; font-weight: 700; color: var(--v25-cream);
  max-width: 24ch;
}
.pn-lead { margin: 14px 0 0; max-width: 60ch; color: var(--muted); font-size: 1rem; line-height: 1.66; }
.pn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(22px, 2.6vw, 34px); }

/* ---------- hero ---------- */
.pn-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header) + clamp(36px, 5vw, 68px)) 0 clamp(44px, 5.5vw, 72px);
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(53, 214, 245, .16), transparent 62%),
    radial-gradient(760px 520px at 4% 8%, rgba(201, 164, 92, .07), transparent 58%),
    linear-gradient(180deg, #030d14 0%, #051420 62%, #071722 100%);
}
.pn-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 230, 251, .28), transparent);
}
.pn-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(24px, 3.4vw, 56px); align-items: center;
}
.pn-h1 {
  margin: 0 0 18px; font-size: clamp(2.3rem, 4.7vw, 3.95rem); line-height: 1.02;
  letter-spacing: -.045em; font-weight: 750; color: var(--v25-cream);
}
.pn-h1 .pn-accent { color: var(--v25-cyan-soft); }
.pn-sub {
  margin: 0 0 12px; font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.42;
  color: #d6e2ec; font-weight: 600; max-width: 34ch;
}
.pn-hero-copy { margin: 0; max-width: 48ch; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.pn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pn-actions .btn { min-height: 46px; padding: 0 20px; }
.pn-hero-note {
  margin: 16px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  color: #7d8b99;
}
.pn-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.pn-hero-visual picture { display: block; width: min(100%, 600px); }
.pn-hero-visual img {
  width: 100%; height: auto; display: block; aspect-ratio: 16 / 10;
  mix-blend-mode: lighten;
  filter: saturate(1.05) contrast(1.02);
}
.pn-hero-visual::before {
  content: ""; position: absolute; inset: 18% 12% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(53, 214, 245, .12), transparent 74%);
  filter: blur(30px); z-index: -1;
}

/* ---------- value ---------- */
.pn-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pn-vcard {
  position: relative; padding: 24px 22px 26px; border-radius: 16px;
  border: 1px solid var(--v25-border); background: linear-gradient(180deg, #0b1c29 0%, var(--v25-card) 100%);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
  overflow: hidden;
}
.pn-vcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 230, 251, .35), transparent);
  opacity: .7;
}
.pn-vcard:hover { border-color: var(--v25-border-strong); transform: translateY(-3px); }
.pn-vnum {
  display: inline-block; margin-bottom: 14px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .18em; color: var(--v25-cyan);
}
.pn-vcard h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.24; letter-spacing: -.02em; color: var(--v25-cream); font-weight: 650; }
.pn-vcard p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.6; }
.pn-ico { width: 32px; height: 32px; margin-bottom: 14px; color: var(--v25-cyan-soft); display: grid; place-items: center; }
.pn-ico svg { width: 26px; height: 26px; display: block; }

/* role split */
.pn-roles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  margin-top: 16px; border: 1px solid var(--v25-border); border-radius: 14px;
  background: rgba(10, 26, 38, .5); overflow: hidden;
}
.pn-role { padding: 18px 22px; }
.pn-role + .pn-role { border-left: 1px solid var(--v25-border); }
.pn-role span {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--v25-cyan); margin-bottom: 6px;
}
.pn-role p { margin: 0; color: #c2cdd8; font-size: .9rem; line-height: 1.55; }

/* ---------- audience cards (editorial art panel) ---------- */
.pn-who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pn-wcard {
  position: relative; display: flex; flex-direction: column; border-radius: 18px;
  border: 1px solid var(--v25-border); overflow: hidden; background: var(--v25-card);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.pn-wcard:hover { border-color: rgba(139, 230, 251, .34); transform: translateY(-3px); }
.pn-wart {
  position: relative; height: 132px; overflow: hidden;
  background:
    radial-gradient(240px 150px at 78% 12%, rgba(53, 214, 245, .18), transparent 70%),
    linear-gradient(155deg, #0d2534 0%, #0a1a26 72%);
  border-bottom: 1px solid rgba(150, 184, 208, .14);
}
.pn-wart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pn-wart::after {
  content: ""; position: absolute; right: 12px; top: 12px; width: 22px; height: 1px;
  background: rgba(139, 230, 251, .55);
}
.pn-wbody { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.pn-wtag { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: #7f97a6; }
.pn-wcard h3 { margin: 0; font-size: 1.02rem; line-height: 1.28; color: var(--v25-cream); font-weight: 650; letter-spacing: -.01em; }
.pn-wcard p { margin: 0; color: var(--muted); font-size: .865rem; line-height: 1.56; }

/* ---------- process ---------- */
.pn-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 4px; }
.pn-steps::before {
  content: ""; position: absolute; left: 3%; right: 3%; top: 17px; height: 1px;
  background: linear-gradient(90deg, rgba(53, 214, 245, .05), rgba(53, 214, 245, .5), rgba(53, 214, 245, .05));
}
.pn-step { position: relative; padding-top: 48px; }
.pn-step-num {
  position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: #071722; border: 1px solid rgba(53, 214, 245, .45);
  font-family: var(--mono); font-size: 11px; color: var(--v25-cyan-soft); letter-spacing: .06em;
}
.pn-step h3 { margin: 0 0 6px; font-size: 1.04rem; color: var(--v25-cream); font-weight: 650; letter-spacing: -.01em; }
.pn-step p { margin: 0; color: var(--muted); font-size: .885rem; line-height: 1.6; }
.pn-process-note {
  margin: 26px 0 0; padding: 0; border: 0; background: none;
  color: #7f8d99; font-size: .82rem; line-height: 1.55; max-width: 78ch;
}

/* ---------- services ---------- */
.pn-services-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(20px, 2.6vw, 34px); align-items: start; }
.pn-svc-list { display: grid; gap: 12px; }
.pn-svc {
  display: flex; align-items: flex-start; gap: 14px; padding: 19px 20px;
  border-radius: 14px; border: 1px solid var(--v25-border); background: var(--v25-card);
  text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pn-svc:hover { border-color: rgba(139, 230, 251, .34); background: #0c1f2c; }
.pn-svc .pn-ico { margin: 0; flex: 0 0 auto; }
.pn-svc-body h3 { margin: 0 0 5px; font-size: 1.01rem; color: var(--v25-cream); font-weight: 650; }
.pn-svc-body p { margin: 0 0 8px; color: var(--muted); font-size: .865rem; line-height: 1.55; }
.pn-svc-link { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--v25-cyan-soft); }
.pn-svc-link span { display: inline-block; transition: transform .2s var(--ease); }
.pn-svc:hover .pn-svc-link span { transform: translateX(3px); }

.pn-feature { border-radius: 16px; border: 1px solid var(--v25-border); background: var(--v25-card); padding: 14px; }
.pn-laptop { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(150, 184, 208, .22); background: #050e16; }
.pn-laptop-bar { display: flex; align-items: center; gap: 6px; padding: 8px 11px; background: #0b1a25; border-bottom: 1px solid rgba(150, 184, 208, .14); }
.pn-laptop-bar i { width: 6px; height: 6px; border-radius: 50%; background: #2c4757; display: block; }
.pn-laptop-bar i:first-child { background: #3f6272; }
.pn-laptop-screen { display: block; width: 100%; height: auto; }
.pn-feature figcaption { margin: 10px 2px 2px; color: #7d8b99; font-size: .72rem; line-height: 1.45; }

/* ---------- faq ---------- */
.pn-faq { max-width: 880px; margin: 0 auto; }
.pn-faq details {
  border: 1px solid var(--v25-border); border-radius: 12px; background: var(--v25-card);
  margin-bottom: 8px; overflow: hidden;
}
.pn-faq details[open] { border-color: rgba(139, 230, 251, .3); }
.pn-faq summary {
  list-style: none; cursor: pointer; padding: 15px 48px 15px 18px; position: relative;
  color: var(--v25-cream); font-size: .95rem; font-weight: 600; line-height: 1.4;
}
.pn-faq summary::-webkit-details-marker { display: none; }
.pn-faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 17px; color: var(--v25-cyan-soft); line-height: 1;
}
.pn-faq details[open] summary::after { content: "–"; }
.pn-faq .pn-faq-a { padding: 0 18px 18px; color: var(--muted); font-size: .9rem; line-height: 1.66; }
.pn-faq .pn-faq-a p { margin: 0 0 8px; }
.pn-faq .pn-faq-a p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.pn-contact { background:
  radial-gradient(900px 480px at 88% 10%, rgba(53, 214, 245, .12), transparent 62%),
  linear-gradient(180deg, #06131d, #040f17);
}
.pn-contact-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.pn-contact h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.04em; color: var(--v25-cream); font-weight: 750; max-width: 17ch; }
.pn-contact-copy { margin: 0 0 22px; color: var(--muted); font-size: .98rem; line-height: 1.66; max-width: 44ch; }
.pn-contact-direct { display: grid; gap: 10px; font-size: .95rem; }
.pn-contact-direct a { color: var(--v25-cyan-soft); text-decoration: none; }
.pn-contact-direct a:hover { color: #fff; }
.pn-contact-direct span { color: #7d8b99; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 2px; }

/* what happens next */
.pn-flow { margin: 22px 0 0; padding: 16px 18px; border: 1px solid rgba(150, 184, 208, .16); border-radius: 12px; background: rgba(10, 26, 38, .55); }
.pn-flow p { margin: 0 0 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--v25-cyan); }
.pn-flow ol { margin: 0; padding-left: 18px; color: #c2cdd8; font-size: .85rem; line-height: 1.6; }
.pn-flow li { margin: 0 0 4px; }
.pn-flow li:last-child { margin-bottom: 0; }

.pn-form { border: 1px solid var(--v25-border); border-radius: 16px; background: var(--v25-card); padding: clamp(18px, 2.4vw, 26px); }
.pn-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pn-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pn-field.wide { grid-column: 1 / -1; }
.pn-field label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8fa0ae; }
.pn-field input, .pn-field select, .pn-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid rgba(150, 184, 208, .2); background: #08151f; color: var(--v25-cream);
  font: inherit; font-size: .93rem; color-scheme: dark;
}
.pn-field textarea { min-height: 96px; resize: vertical; }
.pn-field input:focus-visible, .pn-field select:focus-visible, .pn-field textarea:focus-visible {
  outline: 2px solid var(--v25-cyan); outline-offset: 2px; border-color: transparent;
}
.pn-field input[aria-invalid="true"], .pn-field select[aria-invalid="true"], .pn-field textarea[aria-invalid="true"] { border-color: #b4553f; }
.pn-field input::placeholder, .pn-field textarea::placeholder { color: #61707d; }
.pn-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.pn-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--v25-cyan); flex: 0 0 auto; }
.pn-consent a { color: var(--v25-cyan-soft); }

.pn-submit-note { margin: 16px 0 0; color: #9fb0be; font-size: .8rem; line-height: 1.55; }
.pn-submit-note strong { color: #d6e2ec; }
.pn-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pn-turnstile { margin: 14px 0 0; width: 100%; min-height: 0; }
.pn-turnstile:empty { margin: 0; }
.pn-turnstile iframe { max-width: 100%; }
.pn-form .btn { margin-top: 12px; min-height: 46px; width: 100%; }
.pn-form .btn[disabled] { opacity: .6; cursor: progress; }
.pn-form-note { margin: 10px 0 0; color: #7d8b99; font-size: .74rem; line-height: 1.5; }
.pn-status { margin: 10px 0 0; font-size: .85rem; line-height: 1.5; min-height: 1.2em; }
.pn-status[data-state="ok"] { color: #a9f0cd; }
.pn-status[data-state="error"] { color: #f3b7a7; }

.pn-success { padding: 6px 2px; }
.pn-success:focus { outline: none; }
.pn-success-kicker { margin: 0 0 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--v25-cyan-soft); }
.pn-success h3 { margin: 0 0 10px; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; color: var(--v25-cream); }
.pn-success p { margin: 0 0 10px; color: #b9c6d2; font-size: .92rem; line-height: 1.6; }
.pn-success strong { color: #fff; font-family: var(--mono); font-size: .9rem; letter-spacing: .02em; word-break: break-all; }
.pn-success .pn-success-alt { margin: 14px 0 0; font-size: .85rem; color: #8b9aa7; }
.pn-success .pn-success-alt a { color: var(--v25-cyan-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pn-hero-grid { grid-template-columns: 1fr; }
  .pn-hero-visual { margin-top: 18px; }
  .pn-hero-visual picture { width: min(100%, 430px); }
  .pn-who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-services-grid { grid-template-columns: 1fr; }
  .pn-feature { max-width: 600px; }
}
@media (max-width: 900px) {
  .pn-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pn-value-grid { grid-template-columns: 1fr; }
  .pn-roles { grid-template-columns: 1fr; }
  .pn-role + .pn-role { border-left: 0; border-top: 1px solid var(--v25-border); }
  .pn-steps { grid-template-columns: 1fr; gap: 0; }
  .pn-steps::before { left: 17px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(53,214,245,.05), rgba(53,214,245,.45), rgba(53,214,245,.05)); }
  .pn-step { padding: 0 0 26px 52px; }
  .pn-step:last-child { padding-bottom: 0; }
  .pn-step-num { top: 0; }
  .pn-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pn-h1 { font-size: clamp(2.1rem, 8.6vw, 2.6rem); }
  .pn-sub { font-size: 1rem; }
  .pn-hero-visual picture { width: min(100%, 355px); }
  .pn-who-grid { grid-template-columns: 1fr; }
  .pn-wart { height: 112px; }
  .pn-fields { grid-template-columns: 1fr; }
  .pn-faq summary { padding: 14px 44px 14px 16px; font-size: .92rem; }
  .pn-hero { padding-top: calc(var(--header) + 32px); }
  .pn-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pn-vcard, .pn-wcard, .pn-svc, .pn-svc-link span { transition: none; }
  .pn-vcard:hover, .pn-wcard:hover { transform: none; }
  .pn-svc:hover .pn-svc-link span { transform: none; }
}
