/* ═══════════════════════════════════════════════════════════════════════
   Partners page (bitikka.com/partners). Built on the site's own tokens (style.css):
   yellow is the one accent, ink is the strong surface, panels are 28px and up,
   and every moving thing is off under prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════════════ */

.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

.pt-section { padding-block: clamp(72px, 9vw, 120px); }
.pt-alt { background: var(--bg-alt); }
.pt-narrow { max-width: 860px; }
.pt-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.pt-head-start { margin-bottom: 0; }
.pt-sub { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.pt-fine { font-size: 0.88rem; color: var(--muted); }

/* ── hero ── */
.pt-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); }
.pt-hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vmin; height: 70vmin; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 0, 0.32), rgba(255, 214, 0, 0)); filter: blur(10px);
}
[dir="rtl"] .pt-hero::before { inset: -20% auto auto -10%; }
.pt-hero-grid { position: relative; display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .pt-hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.pt-title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin-top: 14px; }
[dir="ltr"] .pt-title { line-height: 1.04; letter-spacing: -0.035em; }
.pt-lead { margin-top: 22px; font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 56ch; }
.pt-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pt-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(20px, 4vw, 44px); margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.pt-facts li { display: grid; gap: 2px; }
.pt-facts b { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.03em; }
.pt-facts span { font-size: 0.86rem; color: var(--muted); max-width: 16ch; line-height: 1.4; }
@media (max-width: 520px) { .pt-facts { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .pt-facts span { font-size: 0.78rem; } }

.pt-hero-art { position: relative; padding: 28px 10px; }
.pt-ledger {
  position: relative; padding: 28px; border-radius: 32px; background: var(--ink); color: var(--on-ink);
  box-shadow: var(--shadow-device); transform: rotate(-1.5deg); transition: transform 0.6s var(--ease-out);
}
.pt-ledger:hover { transform: rotate(0deg) translateY(-4px); }
.pt-ledger::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); pointer-events: none; }
.pt-ledger-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 0.78rem; font-weight: 700; }
.pt-ledger-who { margin-top: 14px; color: var(--on-ink-muted); font-size: 0.98rem; line-height: 1.55; }
.pt-ledger-rows { margin-top: 18px; display: grid; }
.pt-ledger-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(244, 242, 234, 0.12); }
.pt-ledger-rows b { font-weight: 600; }
.pt-ledger-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(244, 242, 234, 0.2); font-weight: 600; }
.pt-ledger-total b { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; letter-spacing: -0.04em; color: var(--yellow); }
.pt-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-card); font-size: 0.88rem; font-weight: 600; border: 1px solid var(--line); animation: pt-float 6s ease-in-out infinite;
}
.pt-chip-a { inset-block-start: 0; inset-inline-end: 0; }
.pt-chip-b { inset-block-end: 0; inset-inline-start: 0; animation-delay: -3s; }
.pt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow-dark); }
.pt-dot-g { background: #16a34a; }
@keyframes pt-float { 50% { transform: translateY(-7px); } }

/* ── why: numbered cards ── */
.pt-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .pt-grid-3 { grid-template-columns: repeat(2, 1fr); } .pt-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pt-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.pt-card {
  position: relative; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), border-color 0.2s;
}
.pt-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pt-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 0.95rem; font-family: var(--font-latin); }
.pt-card h3 { margin-top: 18px; font-size: 1.28rem; line-height: 1.35; }
.pt-card p { margin-top: 8px; color: var(--muted); line-height: 1.7; }

/* ── earnings calculator ── */
.pt-earn { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .pt-earn { grid-template-columns: 1fr 1fr; } }
.pt-head-start { align-content: start; }
.pt-calc { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.pt-field { display: grid; gap: 8px; font-weight: 600; }
.pt-field select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-weight: 500;
}
.pt-stepper { display: inline-flex; align-items: center; gap: 18px; }
.pt-stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.pt-stepper button:hover { background: var(--surface-2); }
.pt-stepper button:active { transform: scale(0.92); }
.pt-stepper output { min-width: 2ch; text-align: center; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.pt-result { display: grid; gap: 0; margin-top: 4px; }
.pt-result > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.pt-result dt { color: var(--muted); }
.pt-result dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.pt-result-total { margin-top: 6px; padding: 18px 20px !important; border: 0 !important; border-radius: 20px; background: var(--ink); color: var(--on-ink); }
.pt-result-total dt { color: var(--on-ink-muted); font-weight: 600; }
.pt-result-total dd { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -0.04em; color: var(--yellow); }

/* ── how it works ── */
.pt-steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .pt-steps { grid-template-columns: repeat(4, 1fr); } }
.pt-steps li { position: relative; padding: 26px 24px 28px; border-radius: 28px; background: var(--bg-alt); }
.pt-steps b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 1.1rem; }
.pt-steps h3 { margin-top: 16px; font-size: 1.15rem; line-height: 1.4; }
.pt-steps p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; line-height: 1.65; }

/* ── products ── */
.pt-product { border-radius: 36px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden; }
.pt-product h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 4px; font-family: var(--font-latin); }
.pt-kicker { font-size: 0.84rem; font-weight: 700; color: var(--yellow-text); }
.pt-product p { color: var(--muted); }
.pt-product-feature { display: grid; margin-bottom: 16px; }
@media (min-width: 900px) { .pt-product-feature { grid-template-columns: 1.1fr 0.9fr; } }
.pt-product-copy { display: grid; gap: 14px; align-content: center; padding: clamp(26px, 4vw, 52px); }
.pt-product-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pt-plans { display: grid; gap: 0; margin-top: 4px; }
.pt-plans li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.pt-plans li:first-child { border-top: 0; }
.pt-plans span { font-weight: 600; color: var(--text); }
.pt-plans em { font-style: normal; color: var(--muted); font-size: 0.92rem; }
.pt-plans b { min-width: 6ch; text-align: end; font-weight: 700; color: #137a35; background: rgba(22, 163, 74, 0.12); padding: 2px 10px; border-radius: 999px; font-size: 0.95rem; }
:root[data-theme="dark"] .pt-plans b { color: #3ddc84; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pt-plans b { color: #3ddc84; } }

.pt-product-shot {
  position: relative; display: grid; place-items: center; padding: 36px 24px 0; overflow: hidden; text-decoration: none; min-height: 440px;
  background: radial-gradient(70% 60% at 50% 20%, rgba(255, 255, 255, 0.35), transparent 70%), linear-gradient(160deg, #2c5fd0, #162f73);
}
.pt-product-shot .device { width: min(250px, 62%); margin-bottom: -60px; transition: transform 0.6s var(--ease-out); }
.pt-product-shot:hover .device { transform: translateY(-10px) rotate(-1.5deg); }
.pt-shot-tag { position: absolute; inset-block-start: 20px; inset-inline-start: 20px; padding: 6px 14px; border-radius: 999px; background: rgba(13, 13, 13, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 0.82rem; font-weight: 600; }

.pt-product-card { display: grid; grid-template-columns: 1fr; gap: 18px; padding: clamp(24px, 3vw, 38px); align-content: start; }
.pt-product-card > div { display: grid; gap: 12px; align-content: start; }
.pt-mini-phone { width: 150px; justify-self: center; margin-bottom: -70px; margin-top: 6px; }
.pt-school-earn { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 18px; background: rgba(22, 163, 74, 0.12); }
.pt-school-earn b { font-size: 1.6rem; letter-spacing: -0.03em; color: #137a35; }
.pt-school-earn span { color: var(--text-2); font-weight: 600; }
.pt-product-card .btn { justify-self: start; }

/* ── who ── */
.pt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-chips li { padding: 11px 20px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-weight: 600; transition: background 0.2s, transform 0.3s var(--ease-out); }
.pt-chips li:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }

/* ── FAQ ── */
.pt-faq { display: grid; gap: 10px; }
.pt-faq details, .pt-terms-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.pt-faq summary, .pt-terms-box > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; font-weight: 650; cursor: pointer; }
.pt-faq summary::-webkit-details-marker, .pt-terms-box > summary::-webkit-details-marker { display: none; }
.pt-faq summary::after, .pt-terms-box > summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt); font-size: 1.3rem; line-height: 1; transition: transform 0.35s var(--ease-out), background 0.2s; }
.pt-faq details[open] summary::after, .pt-terms-box[open] > summary::after { transform: rotate(45deg); background: var(--yellow); color: var(--ink); }
.pt-faq details p { padding: 0 24px 22px; color: var(--muted); line-height: 1.75; }

/* ── join ── */
.pt-join { position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 120px); background: var(--ink); color: var(--on-ink); }
.pt-join::before { content: ''; position: absolute; inset: auto auto -30% -10%; width: 80vmin; height: 80vmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 0, 0.22), rgba(255, 214, 0, 0)); pointer-events: none; }
[dir="rtl"] .pt-join::before { inset: auto -10% -30% auto; }
.pt-join .container { position: relative; }
.pt-join .section-title { color: var(--on-ink); }
.pt-join .eyebrow { color: var(--on-ink-muted); }
.pt-head-light .pt-sub { color: var(--on-ink-muted); }
.pt-join-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .pt-join-grid { grid-template-columns: 1.15fr 0.85fr; } }
.pt-join-card { display: grid; gap: 16px; align-content: start; padding: clamp(26px, 4vw, 42px); border-radius: 36px; background: rgba(244, 242, 234, 0.07); border: 1px solid rgba(244, 242, 234, 0.16); backdrop-filter: blur(6px); }
.pt-join-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--on-ink); }
.pt-join-card p { color: var(--on-ink-muted); }
.pt-join-new { background: var(--yellow); border-color: transparent; color: var(--ink); }
.pt-join-new h3 { color: var(--ink); }
.pt-join-badge { justify-self: start; padding: 4px 14px; border-radius: 999px; background: rgba(244, 242, 234, 0.14); color: var(--on-ink); font-size: 0.82rem; font-weight: 700; }
.pt-join-new .pt-join-badge { background: var(--ink); color: var(--yellow); }
.pt-join-steps { display: grid; gap: 10px; counter-reset: j; }
.pt-join-steps li { position: relative; padding-inline-start: 42px; font-weight: 600; counter-increment: j; }
.pt-join-steps li::before { content: counter(j); position: absolute; inset-inline-start: 0; inset-block-start: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 0.9rem; }
.pt-join-new .btn-primary { background: var(--ink); color: var(--yellow); }
.pt-join-new .btn-primary:hover { background: #26241d; }
.pt-join-card .btn-ghost { color: var(--on-ink); border-color: rgba(244, 242, 234, 0.4); justify-self: start; }
.pt-join-card .btn-ghost:hover { background: rgba(244, 242, 234, 0.12); }
.pt-join-card .btn { justify-self: start; }
.pt-join-note { margin-top: 22px; font-size: 0.9rem; color: var(--on-ink-muted); text-align: center; }

/* ── the full terms, folded away ── */
.pt-terms { padding-block: clamp(40px, 6vw, 72px); }
.pt-terms-box .legal { padding: 0 24px 28px; }

@media (prefers-reduced-motion: reduce) {
  .pt-chip, .pt-ledger, .pt-card, .pt-product-shot .device, .pt-chips li { animation: none !important; transition: none !important; transform: none !important; }
}
