/* ==========================================================================
   partner.css — Partner Program landing page (EN + JA)
   Page-specific styles layered on top of the shared sales.css design system.
   Used by:  /sales/partner.html  and  /sales/ja/partner.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — a centered, dotted-backdrop hero with an earning-flow diagram,
   deliberately different from the sales LP's two-column hero.
   -------------------------------------------------------------------------- */
.phero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(165deg, #1c0e44 0%, #3b1d8a 52%, #244ea8 128%);
  padding: 62px 0 74px;
}

.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(62% 62% at 50% 26%, #000 0, transparent 76%);
  -webkit-mask-image: radial-gradient(62% 62% at 50% 26%, #000 0, transparent 76%);
}

.phero .glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 61, 240, .55), transparent 62%);
  top: -220px;
  right: -120px;
  filter: blur(8px);
  pointer-events: none;
}

.phero .wrap {
  position: relative;
  text-align: center;
}

.phero .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 168, 255, .18);
  color: #e7dcff;
  border: 1px solid rgba(196, 168, 255, .4);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.phero h1 {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -1px;
  margin: 0 auto 16px;
  max-width: 780px;
}

.phero h1 span {
  background: linear-gradient(90deg, #c4a8ff, #7fb0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.phero .lead {
  font-size: 18px;
  color: #cdc2ee;
  max-width: 600px;
  margin: 0 auto 28px;
}

.phero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .phero h1 { font-size: 33px; }
  .phero { padding: 46px 0 54px; }
}

/* --------------------------------------------------------------------------
   Earning-flow diagram (You join → A shop signs up → You get paid)
   -------------------------------------------------------------------------- */
.flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 48px auto 0;
  max-width: 840px;
}

.flow-node {
  flex: 1;
  min-width: 210px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(196, 168, 255, .26);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
}

.flow-node .fn-ic { font-size: 30px; }

.flow-node .fn-t {
  font-weight: 800;
  font-size: 16px;
  margin: 9px 0 4px;
}

.flow-node .fn-d {
  color: #bcb0e0;
  font-size: 13px;
  line-height: 1.45;
}

.flow-node .fn-code {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #e7dcff;
  background: rgba(0, 0, 0, .24);
  border: 1px dashed rgba(196, 168, 255, .5);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12.5px;
}

.flow-node .fn-badge {
  display: inline-block;
  margin-top: 10px;
  font-weight: 850;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, #7a3df0, #2b6ef0);
  border-radius: 10px;
  padding: 4px 15px;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9b8fd0;
  font-size: 26px;
  padding: 0 6px;
  font-weight: 800;
}

@media (max-width: 680px) {
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; }
}

/* --------------------------------------------------------------------------
   Mutual-benefit split (the shop owner / you, the partner)
   -------------------------------------------------------------------------- */
.benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .benefit { grid-template-columns: 1fr; }
}

.benefit .bcard {
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.benefit .bcard.you {
  background: linear-gradient(165deg, #f3edff, #ffffff);
  border-color: #e2d4ff;
}

.benefit .bcard.shop {
  background: linear-gradient(165deg, #eaf2ff, #ffffff);
  border-color: #d4e3ff;
}

.benefit .bcard .big {
  font-size: 40px;
  font-weight: 850;
  letter-spacing: -1px;
  margin: 6px 0 2px;
}

.benefit .bcard.you .big { color: #7a3df0; }
.benefit .bcard.shop .big { color: var(--blue); }

.benefit .bcard h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.benefit .bcard p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Earnings example tiles + fine print
   -------------------------------------------------------------------------- */
.exrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 6px auto 0;
}

@media (max-width: 640px) {
  .exrow { grid-template-columns: 1fr; }
}

.extile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.extile .plan {
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}

.extile .amt {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
}

.extile .earn {
  font-size: 22px;
  font-weight: 850;
  color: #7a3df0;
  letter-spacing: -.5px;
}

.fineprint {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.badrule {
  display: inline-block;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #b45309;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 700;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Violet call-to-action button (partner accent over the shared .btn)
   -------------------------------------------------------------------------- */
.pbtn-violet {
  background: #7a3df0;
  box-shadow: 0 8px 22px rgba(122, 61, 240, .34);
}

.pbtn-violet:hover { background: #6a2fd8; }

/* iPhone SE / small phones: shrink the header CTA so it doesn't crowd. */
@media (max-width: 560px) {
  .nav-links .btn { font-size: 11px; }
}

/* --------------------------------------------------------------------------
   Small layout helpers (previously inline styles on the page)
   -------------------------------------------------------------------------- */
.optional-note {
  color: var(--muted);
  font-weight: 600;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.signin-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}

.signin-note a {
  color: #7a3df0;
  font-weight: 700;
}
