/* =========================================================
   Pickleheart — Insider Shop
   -----------------------------------------------------------------
   Component styles for the Insiders page template.
   Scoped under `.insider-shop` — does not affect header/footer.
   ========================================================= */

.insider-shop {
  --coral: var(--pkl-coral-300);
  --navy: var(--pkl-navy-500);
  --navy-hover: var(--pkl-navy-600);
  --navy-press: var(--pkl-navy-700);
  --yellow: var(--pkl-yellow-200);
  --cream: var(--pkl-cream);
  --ink: var(--text-neutral-strong);
  --btn-shadow: var(--elevation-2);

  font-family: var(--font-body);
  letter-spacing: var(--tracking-body);
  color: var(--text-neutral-strong);
  background: #fff;
  line-height: 1.535;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
.insider-shop *,
.insider-shop *::before,
.insider-shop *::after { box-sizing: border-box; }

.insider-shop h1,
.insider-shop h2,
.insider-shop h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  color: var(--text-neutral-strong);
}
.insider-shop p {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.535;
}
.insider-shop a { text-decoration: none; color: inherit; }
.insider-shop img { display: block; max-width: 100%; }

.insider-shop .wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
  padding-inline: 22px;
}

.insider-shop .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}
.insider-shop .eyebrow img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.insider-shop .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-button);
  box-shadow: var(--btn-shadow);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: var(--tracking-button);
  cursor: pointer;
  padding: 15px 24px;
  font-size: 16px;
  min-height: 52px;
  white-space: nowrap;
  transition: transform 130ms ease, filter 130ms ease;
  background: var(--navy);
  color: #fff;
}
.insider-shop .btn.btn-navy { background: var(--navy); color: #fff; }
.insider-shop .btn:active { transform: translateY(1px); filter: brightness(0.94); }
.insider-shop .btn:hover { filter: brightness(1.05); }
.insider-shop .btn-block { width: 100%; }

.insider-shop .rp-accent,
.insider-shop .hero-title strong,
.insider-shop .hero-title em,
.insider-shop .about-para strong,
.insider-shop .about-para em {
  color: var(--coral, inherit);
  transition: color 150ms ease;
}
.insider-shop .hero-title strong {
  font-weight: 700;
}

/* ---------- Hero ---------- */
.insider-shop .hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 44px;
}
.insider-shop .hero-wash {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: url('./insiders/illustrations/aura-blue.png') center/contain no-repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .insider-shop .hero-wash { animation: insiderHeroWashDrift 30s ease-in-out infinite; }
}
@keyframes insiderHeroWashDrift {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.55; }
  50% { transform: translate(-60px, 50px) scale(1.18) rotate(6deg); opacity: 0.85; }
}
.insider-shop .hero-ball {
  position: absolute;
  left: -50px;
  bottom: -40px;
  width: 190px;
  opacity: 0.05;
  transform: rotate(-16deg);
  pointer-events: none;
  z-index: 0;
}
.insider-shop .hero .wrap { position: relative; z-index: 1; }
.insider-shop .hero-eyebrow { justify-content: center; width: 100%; }
.insider-shop .hero-title {
  margin-top: 16px;
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-align: center;
}
.insider-shop .hero-lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-neutral-weak);
  max-width: 640px;
  margin-inline: auto;
  text-wrap: pretty;
  text-align: center;
}

.insider-shop .hero-split {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  position: relative;
}
.insider-shop .hero-photo-wrap {
  order: -1;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 16px 30px rgba(31, 73, 125, 0.32);
}
.insider-shop .hero-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 30px;
}

.insider-shop .hero-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.insider-shop .hero-quote {
  font-size: 32px;
  line-height: 1.25;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 18px;
}

.insider-shop .pills {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 20px 0 24px;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}
.insider-shop .pill {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--border-neutral-weak);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.82);
}
.insider-shop .pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---------- Join ---------- */
.insider-shop .join {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 45px 0 50px;
}
.insider-shop .join-comet {
  display: block;
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  height: auto;
  aspect-ratio: 320 / 190;
  margin: -25px 0 0 -50vw;
  object-fit: contain;
  opacity: 0.08;
  pointer-events: none;
  transform: translate(-30px, -60px) rotate(20deg);
  z-index: 0;
}
.insider-shop .join .wrap.join-grid { position: relative; z-index: 1; }
.insider-shop .join-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.insider-shop .join h2 {
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
  margin-top: 14px;
}
.insider-shop .join .lead {
  margin-top: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}
.insider-shop .join-left > .eyebrow { margin-top: 20px; color: var(--coral); }
.insider-shop .steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.insider-shop .step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.insider-shop .step-num {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: url('./insiders/illustrations/pickleball-outline.png') center / 115% no-repeat, var(--yellow);
  color: var(--navy-press);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .insider-shop .step { opacity: 0; transform: translateY(-14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .insider-shop .steps.in-view .step:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
  .insider-shop .steps.in-view .step:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.5s; }
  .insider-shop .steps.in-view .step:nth-child(3) { opacity: 1; transform: none; transition-delay: 1s; }
  .insider-shop .join-note { opacity: 0; transform: translateY(-14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .insider-shop .steps.in-view ~ .join-note { opacity: 1; transform: none; transition-delay: 1.5s; }
}
.insider-shop .step-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15.5px;
  color: #fff;
}
.insider-shop .step-desc {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}
.insider-shop .join-note {
  margin-top: 46px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 420px;
  line-height: 1.5;
}
.insider-shop .join-right { margin-top: -140px; }

/* ---------- Form card ---------- */
.insider-shop .form-card {
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 24px 20px 22px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
}
.insider-shop .form-lead {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}
.insider-shop .form-login-gate {
  text-align: center;
}
.insider-shop .form-login-gate .form-lead {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.66);
  margin-bottom: 24px;
}
.insider-shop .form-login-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.insider-shop .form-login-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.insider-shop .form-login-link:hover {
  color: rgba(31, 73, 125, 0.78);
}
.insider-shop .field { margin-bottom: 14px; }
.insider-shop .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.insider-shop label.lbl {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.62);
  margin-bottom: 7px;
}
.insider-shop .field input,
.insider-shop .field textarea {
  width: 100%;
  border: 1px solid var(--pkl-black-12);
  border-radius: var(--radius-input);
  padding: 14px 15px;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: #fff;
  outline: 0;
  min-height: 50px;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}
.insider-shop .field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}
.insider-shop .field input::placeholder,
.insider-shop .field textarea::placeholder { color: var(--pkl-grey-300); }
.insider-shop .field input:focus,
.insider-shop .field textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(235, 141, 138, 0.22);
}
.insider-shop .insiders-cf7 .field input[readonly],
.insider-shop .insiders-cf7 .field input:read-only {
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.72);
  cursor: default;
}
.insider-shop .insiders-cf7 .field input[readonly]:focus,
.insider-shop .insiders-cf7 .field input:read-only:focus {
  border-color: var(--pkl-black-12);
  box-shadow: none;
}
.insider-shop .form-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.28);
}

.insider-shop .insiders-cf7 .wpcf7 { margin: 0; }
.insider-shop .insiders-cf7 .wpcf7-form { margin: 0; }
.insider-shop .insiders-cf7 .form-account-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.42);
  letter-spacing: 0.01em;
}
.insider-shop .insiders-cf7 .field > p,
.insider-shop .insiders-cf7 .field-row > div > p {
  margin: 0;
  display: contents;
}
.insider-shop .insiders-cf7 .field p > br { display: none; }
.insider-shop .insiders-cf7 .wpcf7-form-control-wrap { display: block; }
.insider-shop .insiders-cf7 .wpcf7-form-control { margin: 0; }
.insider-shop .insiders-cf7 p:has(.wpcf7-submit) {
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.insider-shop .insiders-cf7 input.wpcf7-submit.btn {
  display: block;
  width: 100%;
  text-align: center;
  line-height: normal;
}
.insider-shop .insiders-cf7 .wpcf7-spinner {
  position: absolute;
  margin: 0;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.insider-shop .insiders-cf7 .form-foot {
  margin-top: 12px;
}
.insider-shop .insiders-cf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-input);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.insider-shop .insiders-cf7 .wpcf7 form.sent .wpcf7-response-output {
  background: rgba(235, 141, 138, 0.12);
  color: var(--text-neutral-strong);
}
.insider-shop .insiders-cf7 .wpcf7 form.invalid .wpcf7-response-output,
.insider-shop .insiders-cf7 .wpcf7 form.failed .wpcf7-response-output {
  background: rgba(255, 0, 0, 0.08);
  color: #b42318;
}
.insider-shop .insiders-cf7 .wpcf7-not-valid {
  border-color: #e5484d !important;
}
.insider-shop .insiders-cf7 .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #e5484d;
  margin-top: 6px;
}

.insider-shop .form-success {
  display: none;
  text-align: center;
  padding: 22px 6px 14px;
}
.insider-shop .form-card.done .form-body { display: none; }
.insider-shop .form-card.done .form-success { display: block; }
.insider-shop .success-heart {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}
.insider-shop .form-success h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--text-neutral-strong);
}
.insider-shop .form-success p {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.66);
}
.insider-shop .form-success-message {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.66);
}
.insider-shop .hero-lead p,
.insider-shop .about-para p,
.insider-shop .join-note p,
.insider-shop .step-desc p,
.insider-shop .form-success-message p {
  margin: 0;
}

/* ---------- About ---------- */
.insider-shop .about {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 50px 0 54px;
  text-align: center;
}
.insider-shop .about-ball {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 220px;
  opacity: 0.05;
  transform: rotate(14deg);
  pointer-events: none;
  z-index: 0;
}
.insider-shop .about-paddle {
  position: absolute;
  left: -50px;
  bottom: -20px;
  width: 200px;
  opacity: 0.06;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
}
.insider-shop .about-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}
.insider-shop .about-inner .eyebrow { justify-content: center; }
.insider-shop .about h2 {
  margin-top: 16px;
  font-size: 26px;
  line-height: 1.2;
  text-wrap: balance;
}
.insider-shop .about-para {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--text-neutral-weak);
  text-align: center;
}
.insider-shop .about .btn { margin-top: 28px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .insider-shop .wrap { padding-inline: 0; }

  .insider-shop .hero { padding: 70px 0 92px; }
  .insider-shop .hero-wash { top: -320px; right: -260px; width: 1100px; height: 1100px; }
  .insider-shop .hero-ball { left: -70px; bottom: -60px; width: 260px; }
  .insider-shop .about-ball { right: -80px; top: -60px; width: 300px; }
  .insider-shop .about-paddle { left: -32px; top: 374px; bottom: auto; width: 280px; }
  .insider-shop .hero-title {
    margin-top: 22px;
    font-size: clamp(38px, 5.2vw, 60px);
    max-width: 880px;
    margin-inline: auto;
  }
  .insider-shop .hero-lead { margin-top: 22px; font-size: 18px; max-width: 660px; margin-inline: auto; }

  .insider-shop .hero-split {
    margin-top: 54px;
    grid-template-columns: 1fr 0.86fr;
    gap: 52px;
    align-items: stretch;
  }
  .insider-shop .hero-photo-wrap { order: 1; }
  .insider-shop .hero-left {
    align-self: center;
    max-width: 560px;
    order: 0;
    text-align: center;
    align-items: center;
  }
  .insider-shop .hero-quote {
    font-size: 42px;
    text-align: left;
    align-self: stretch;
    margin-left: 14px;
    margin-top: 28px;
  }
  .insider-shop .hero-photo { height: 100%; min-height: 440px; }
  .insider-shop .pills {
    flex-direction: column;
    align-items: stretch;
    margin: 24px 0 28px;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
  .insider-shop .pill { flex: none; width: 100%; }

  .insider-shop .join { padding: 92px 0 120px; }
  .insider-shop .join-comet {
    position: absolute;
    left: -30px;
    top: 41.5%;
    bottom: auto;
    width: 491px;
    height: 337px;
    margin: 0;
    max-width: none;
    aspect-ratio: auto;
    transform: rotate(20deg);
    transform-origin: left bottom;
  }
  .insider-shop .join-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .insider-shop .join h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 20px; }
  .insider-shop .join .lead { font-size: 17px; }
  .insider-shop .steps { margin-top: 38px; gap: 24px; }
  .insider-shop .step-num { width: 46px; height: 46px; font-size: 24px; }
  .insider-shop .step-title { font-size: 16.5px; }
  .insider-shop .join-note { margin-top: 40px; }
  .insider-shop .join-right { margin-top: 0; }

  .insider-shop .form-card { padding: 34px 34px 30px; border-radius: 26px; }
  .insider-shop .field-row.solo { grid-template-columns: 1fr 1fr; }

  .insider-shop .about { padding: 96px 0 104px; }
  .insider-shop .about h2 { font-size: clamp(28px, 3.4vw, 40px); }
  .insider-shop .about-para { font-size: 17px; }
}

@media (max-width: 899px) {
  .insider-shop .field-row { grid-template-columns: 1fr; }
}

body.insiders-page {
  overflow-x: clip;
}
